]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
01fips: add / in BOOT_IMAGE_HMAC filename for clarity
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 29 Oct 2019 20:53:00 +0000 (16:53 -0400)
committerLukáš Nykrýn <lnykryn@redhat.com>
Thu, 31 Oct 2019 10:12:36 +0000 (11:12 +0100)
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.

modules.d/01fips/fips.sh

index b796c72e8a7781925ee06d3b3575f5ec0383fec6..4b3b70809681e905661ca232922162f3a7c9884f 100755 (executable)
@@ -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