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