mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
dm-verity-image-initramfs: Allow compressed image types
Using <DM_VERITY_IMAGE_TYPE> in the depends variable does not work for compressed image types like squashfs-zst, as the resulting task dependency still contains the incompatible dash. Replacing the dash by an underscore resolves this issue. Signed-off-by: Stephan Wurm <stephan.wurm@a-eberle.de> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
d47553303c
commit
a94674c5bc
@@ -19,7 +19,14 @@ IMAGE_FEATURES = ""
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
# Can we somehow inspect reverse dependencies to avoid these variables?
|
||||
do_image[depends] += "${DM_VERITY_IMAGE}:do_image_${DM_VERITY_IMAGE_TYPE}"
|
||||
python __anonymous() {
|
||||
verity_image = d.getVar('DM_VERITY_IMAGE')
|
||||
verity_type = d.getVar('DM_VERITY_IMAGE_TYPE')
|
||||
|
||||
if verity_image and verity_type:
|
||||
dep = ' %s:do_image_%s' % (verity_image, verity_type.replace('-', '_'))
|
||||
d.appendVarFlag('do_image', 'depends', dep)
|
||||
}
|
||||
|
||||
# Ensure dm-verity.env is updated also when rebuilding DM_VERITY_IMAGE
|
||||
do_image[nostamp] = "1"
|
||||
|
||||
Reference in New Issue
Block a user