dm-verity-image-initramfs: Set IMAGE_NAME_SUFFIX to empty
PATCH 1/1 dm-verity-image-initramfs: Set IMAGE_NAME_SUFFIX to empty
From: Kevin Hao <[email protected]>
According to the Yocto reference manual [1], the IMAGE_NAME_SUFFIX should
be set to empty for the initramfs image. Otherwise, we may incur a build
error like following due to the initrd check in live-vm-common.bbclass:
ERROR: core-image-minimal-1.0-r0 do_bootimg: build-test/tmp/deploy/images/genericx86-64/dm-verity-image-initramfs-genericx86-64.cpio.gz is invalid. initrd image creation failed.
ERROR: core-image-minimal-1.0-r0 do_bootimg: ExecutionError('build-test/tmp/work/genericx86_64-poky-linux/core-image-minimal/1.0/temp/run.build_hddimg.1961965', 1, None, None)
ERROR: Logfile of failure stored in: build-test/tmp/work/genericx86_64-poky-linux/core-image-minimal/1.0/temp/log.do_bootimg.1961965
ERROR: Task (poky/meta/recipes-core/images/core-image-minimal.bb:do_bootimg) failed with exit code '1'
[1] https://docs.yoctoproject.org/ref-manual/variables.html#term-IMAGE_NAME_SUFFIX
--- recipes-core/images/dm-verity-image-initramfs.bb | 2 ++ 1 file changed, 2 insertions(+)
recipes-core/images/dm-verity-image-initramfs.bb +2 -0
@@ -18,6 +18,8 @@ PACKAGE_INSTALL = " \ IMAGE_FEATURES = "" IMAGE_LINGUAS = "" +IMAGE_NAME_SUFFIX ?= "" + # Can we somehow inspect reverse dependencies to avoid these variables? python __anonymous() { verity_image = d.getVar('DM_VERITY_IMAGE')
Signature · 1 line
2.43.2