Wind River Support Network

HomeDefectsLIN6-7082
Fixed

LIN6-7082 : rootfs buld error: "tar: .: file changed as we read it

Created: Apr 8, 2014    Updated: Dec 3, 2018
Resolved Date: Apr 9, 2014
Found In Version: 6.0.0.2
Fix Version: 6.0.0.6
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config

Description

The Linux kernel requires that initrd images contain a /init file for the image to be used as an initrd, even if it is empty. Adding it into the rootfs directory creates a race, that can upset tar when building both a .tar and .cpio image file ("tar: .: file changed as we read it"). Additionally, whether or not the tar file will contain the /init file is also up to the race condition.

Steps to Reproduce

1 configure --with-template=feature/initramfs-integrated
2 make fs

Other Downloads


Live chat
Online