diff options
author | Louis Rannou <louis.rannou@non.se.com> | 2024-05-20 21:33:47 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-12-16 12:49:13 -0500 |
commit | 8c9cdd60e429025ad75827eca08d37ef2725b832 (patch) | |
tree | fcaab6d648b9301a2a506d78ba7b123b900b49eb | |
parent | 29d46054c2a3c71ae1ad164a6f32bd6ecbe1b07b (diff) | |
download | meta-security-8c9cdd60e429025ad75827eca08d37ef2725b832.tar.gz |
dm-verity: set staging correctly in case basename has changed
Fix the verity class when the IMAGE_BASENAME has changed. Prefer DM_VERITY_IMAGE
for staging env and wic fragment so it matchs what is used in the
dm-verity-image-initramfs and the base wks systemd-bootdisk-dmverity.wks.in.
Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Signed-off-by: Louis Rannou <louis.rannou@syslinbit.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | classes/dm-verity-img.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass index 9a3a97e..296020a 100644 --- a/classes/dm-verity-img.bbclass +++ b/classes/dm-verity-img.bbclass | |||
@@ -63,8 +63,8 @@ DEPENDS += "bc-native" | |||
63 | # convert it to some better format. Let's drop the first line (doesn't contain | 63 | # convert it to some better format. Let's drop the first line (doesn't contain |
64 | # any useful info) and feed the rest to a script. | 64 | # any useful info) and feed the rest to a script. |
65 | process_verity() { | 65 | process_verity() { |
66 | local ENV="${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.$TYPE.verity.env" | 66 | local ENV="${STAGING_VERITY_DIR}/${DM_VERITY_IMAGE}.$TYPE.verity.env" |
67 | local WKS_INC="${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.$TYPE.wks.in" | 67 | local WKS_INC="${STAGING_VERITY_DIR}/${DM_VERITY_IMAGE}.$TYPE.wks.in" |
68 | rm -f $ENV | 68 | rm -f $ENV |
69 | 69 | ||
70 | # Each line contains a key and a value string delimited by ':'. Read the | 70 | # Each line contains a key and a value string delimited by ':'. Read the |