From: Jonathan Lebon Date: Tue, 29 Oct 2019 20:53:00 +0000 (-0400) Subject: 01fips: add / in BOOT_IMAGE_HMAC filename for clarity X-Git-Tag: 050~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca4aa84851fb0c4e43effb307d83275108b15a73;p=thirdparty%2Fdracut.git 01fips: add / in BOOT_IMAGE_HMAC filename for clarity It's already the case the `BOOT_IMAGE_PATH` today, in the non-empty case, includes a trailing `/`, but let's add it to the path we build here too to make it more obvious. --- diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh index b796c72e8..4b3b70809 100755 --- a/modules.d/01fips/fips.sh +++ b/modules.d/01fips/fips.sh @@ -129,7 +129,7 @@ do_fips() fi fi - BOOT_IMAGE_HMAC="/boot/${BOOT_IMAGE_PATH}.${BOOT_IMAGE_NAME}.hmac" + BOOT_IMAGE_HMAC="/boot/${BOOT_IMAGE_PATH}/.${BOOT_IMAGE_NAME}.hmac" if ! [ -e "${BOOT_IMAGE_HMAC}" ]; then warn "${BOOT_IMAGE_HMAC} does not exist" return 1