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