Wind River Support Network

HomeDefectsLIN5-18484
Fixed

LIN5-18484 : CLONE - rootfs buld error: "tar: .: file changed as we read it

Created: Apr 8, 2014    Updated: Dec 19, 2017
Resolved Date: Apr 9, 2014
Previous ID: LIN6-7083
Found In Version: 5.0.1.11
Fix Version: 5.0.1.14
Severity: Standard
Applicable for: Wind River Linux 5
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