Wind River Support Network

HomeDefectsLIN7-76
Fixed

LIN7-76 : rootfs buld error: "tar: .: file changed as we read it

Created: May 19, 2014    Updated: Mar 31, 2016
Resolved Date: May 19, 2014
Found In Version: 7.0
Fix Version: 7.0
Severity: Standard
Applicable for: Wind River Linux 7
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
Live chat
Online