[OE-core] [PATCH] Fix "tar: .: file changed as we read it" with cpio+tar builds enabled

Jonas Eriksson jonas.eriksson at enea.com
Mon Mar 24 15:56:04 UTC 2014


Hi,

This patch solves a problem we have been seeing when building both a .tar(.gz)
and .cpio(.gz) image, where the cpio job creates a file in the rootfs
directory. This event may happen while tar is running, which makes tar exit
indicating an error and thus aborting the build.

The only potential problem with the patch that I can think of is whether or not
cpio in the build host support -A and -F. I've checked the GNU cpio git repo,
and the arguments have been there since they started using git in 2004, which
means that this should not be a problem.

Regards,
/Jonas

Jonas Eriksson (1):
  cpio rootfs build: Avoid modifying rootfs dir

 meta/classes/image_types.bbclass | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
1.9.0



More information about the Openembedded-core mailing list