6b5521
From d07e4025e05de0461444c196102020919cdb5c2d Mon Sep 17 00:00:00 2001
6b5521
From: Jonathan Lebon <jonathan@jlebon.com>
6b5521
Date: Tue, 29 Oct 2019 16:53:00 -0400
6b5521
Subject: [PATCH] 01fips: add / in BOOT_IMAGE_HMAC filename for clarity
6b5521
6b5521
It's already the case the `BOOT_IMAGE_PATH` today, in the non-empty
6b5521
case, includes a trailing `/`, but let's add it to the path we build
6b5521
here too to make it more obvious.
6b5521
---
6b5521
 modules.d/01fips/fips.sh | 2 +-
6b5521
 1 file changed, 1 insertion(+), 1 deletion(-)
6b5521
6b5521
diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh
6b5521
index 893143d0..de2755b0 100755
6b5521
--- a/modules.d/01fips/fips.sh
6b5521
+++ b/modules.d/01fips/fips.sh
6b5521
@@ -129,7 +129,7 @@ do_fips()
6b5521
             fi
6b5521
         fi
6b5521
 
6b5521
-        BOOT_IMAGE_HMAC="/boot/${BOOT_IMAGE_PATH}.${BOOT_IMAGE_NAME}.hmac"
6b5521
+        BOOT_IMAGE_HMAC="/boot/${BOOT_IMAGE_PATH}/.${BOOT_IMAGE_NAME}.hmac"
6b5521
         if ! [ -e "${BOOT_IMAGE_HMAC}" ]; then
6b5521
             warn "${BOOT_IMAGE_HMAC} does not exist"
6b5521
             return 1
6b5521