Bug 5830

Summary: IMAGE_FSTYPES dependency handling broken
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: deploymentAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: High CC: sgw
Version: 1.6   
Target Milestone: 1.1.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2014-02-17 09:16:37 UTC
After the switch to the new Python rootfs/image creation routines, the IMAGE_FSTYPES dependency handling is broken.

The commands for each image type are executed in parallel while the dependency handling assumes they are executed sequentially. This can be seen in meta/lib/oe/image.py, where the addtypedepends function just reorders IMAGE_FSTYPES such that the dependent images are generated first.

As a result, generating an SD card image using meta-raspberrypi or meta-sunxi for example often results in a corrupt image as the rootfs image is copied into the SD card image while the rootfs image is still being generated.