Since during do_image_<fstype> task artifacts are still populated under recipe-specific IMGDEPLOYDIR (rather than the 'generic' DEPLOY_DIR_IMAGE area), there is potential race issue if do_rootfs() of this recipe executes before DM_VERITY_IMAGE's do_image_complete() publishes said artifacts into DEPLOY_DIR_IMAGE. In such case, following breakage occurs:
Exception: bb.process.ExecutionError: Execution of '.../build/tmp/work/qemux86_64-poky-linux/dm-verity-image-initramfs/1.0-r0/temp/run.deploy_verity_hash.64332' failed with exit code 1: install: cannot stat '.../build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4.verity.env': No such file or directory WARNING: exit code 1 from a shell command. ... ERROR: Logfile of failure stored in: .../build/tmp/work/qemux86_64-poky-linux/dm-verity-image-initramfs/1.0-r0/temp/log.do_rootfs.64332 ERROR: Task (.../meta-security/recipes-core/images/dm-verity-image-initramfs.bb:do_rootfs) failed with exit code '1' Here we fix the issue by depending this recipe's do_rootfs() task on DM_VERITY_IMAGE's do_image_complete() instead, after which issuing bitbake -c clean <DM_VERITY_IMAGE> bitbake -c rootfs dm-verity-image-initramfs no longer induces this kind of breakage. Signed-off-by: Niko Mauno <niko.ma...@vaisala.com> --- recipes-core/images/dm-verity-image-initramfs.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/images/dm-verity-image-initramfs.bb b/recipes-core/images/dm-verity-image-initramfs.bb index f9ea3762..96f55ceb 100644 --- a/recipes-core/images/dm-verity-image-initramfs.bb +++ b/recipes-core/images/dm-verity-image-initramfs.bb @@ -14,7 +14,7 @@ PACKAGE_INSTALL = " \ " # Can we somehow inspect reverse dependencies to avoid these variables? -do_rootfs[depends] += "${DM_VERITY_IMAGE}:do_image_${DM_VERITY_IMAGE_TYPE}" +do_rootfs[depends] += "${DM_VERITY_IMAGE}:do_image_complete" IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" -- 2.20.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50460): https://lists.yoctoproject.org/g/yocto/message/50460 Mute This Topic: https://lists.yoctoproject.org/mt/76691215/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-