mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
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>
This commit is contained in:
committed by
Armin Kuster
parent
29d46054c2
commit
8c9cdd60e4
@@ -63,8 +63,8 @@ DEPENDS += "bc-native"
|
||||
# convert it to some better format. Let's drop the first line (doesn't contain
|
||||
# any useful info) and feed the rest to a script.
|
||||
process_verity() {
|
||||
local ENV="${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.$TYPE.verity.env"
|
||||
local WKS_INC="${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.$TYPE.wks.in"
|
||||
local ENV="${STAGING_VERITY_DIR}/${DM_VERITY_IMAGE}.$TYPE.verity.env"
|
||||
local WKS_INC="${STAGING_VERITY_DIR}/${DM_VERITY_IMAGE}.$TYPE.wks.in"
|
||||
rm -f $ENV
|
||||
|
||||
# Each line contains a key and a value string delimited by ':'. Read the
|
||||
|
||||
Reference in New Issue
Block a user