]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Check .hmac of boot.iso in fips mode
authorBrian C. Lane <bcl@brianlane.com>
Fri, 13 Dec 2019 17:47:43 +0000 (09:47 -0800)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 14 Jan 2020 08:23:21 +0000 (09:23 +0100)
Instead of carrying the kernel and hmac in the install.img (which takes
up more space) use the vmlinuz installed under /images/pxeboot/ and the
.hmac in the install.img /boot.

This check is triggered by the presence of /run/install/repo/images/pxeboot/vmlinuz

Related: rhbz#1782737

modules.d/01fips/fips.sh

index 031ada8b0556356ee77ce2a090b672def4077059..8fba135b2f026c4caae982a01de32c21dea9eed5 100755 (executable)
@@ -111,6 +111,9 @@ do_fips()
         do_rhevh_check /run/initramfs/live/vmlinuz0 || return 1
     elif [ -e "/run/initramfs/live/isolinux/vmlinuz0" ]; then
         do_rhevh_check /run/initramfs/live/isolinux/vmlinuz0 || return 1
+    elif [ -e "/run/install/repo/images/pxeboot/vmlinuz" ]; then
+        # This is a boot.iso with the .hmac inside the install.img
+        do_rhevh_check /run/install/repo/images/pxeboot/vmlinuz || return 1
     else
         BOOT_IMAGE="$(getarg BOOT_IMAGE)"