]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(fips): add progress messages
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 27 Dec 2022 08:29:44 +0000 (09:29 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 13 Feb 2023 12:00:01 +0000 (12:00 +0000)
This allows to better understand at what point a FIPS integrity test failed.

Signed-off-by: Raymund Will <rw@suse.com>
modules.d/01fips/fips-boot.sh
modules.d/01fips/fips-load-crypto.sh
modules.d/01fips/fips-noboot.sh

index 031d169a6946f0387ac6846444fb943f956156cd..34760e018c9288d4bcb88a5cab486d3b4b03c946 100755 (executable)
@@ -8,7 +8,9 @@ elif [ -z "$fipsmode" ]; then
     die "FIPS mode have to be enabled by 'fips=1' not just 'fips'"
 elif getarg boot= > /dev/null; then
     . /sbin/fips.sh
+    fips_info "fips-boot: start"
     if mount_boot; then
         do_fips || die "FIPS integrity test failed"
     fi
+    fips_info "fips-boot: done!"
 fi
index 21e99278592720e7f27ce819dd58e0559751ad3f..6ef42b951cf1594c59db96604c1698a748d992d6 100755 (executable)
@@ -8,5 +8,7 @@ elif [ -z "$fipsmode" ]; then
     die "FIPS mode have to be enabled by 'fips=1' not just 'fips'"
 else
     . /sbin/fips.sh
+    fips_info "fips-load-crypto: start"
     fips_load_crypto || die "FIPS integrity test failed"
+    fips_info "fips-load-crypto: done!"
 fi
index f00c2f326debad165740907111916aee040fbdb2..963a034d6a618f28c6948a4c2273975eae5bd39a 100755 (executable)
@@ -8,6 +8,8 @@ elif [ -z "$fipsmode" ]; then
     die "FIPS mode have to be enabled by 'fips=1' not just 'fips'"
 elif ! [ -f /tmp/fipsdone ]; then
     . /sbin/fips.sh
+    fips_info "fips-noboot: start"
     mount_boot
     do_fips || die "FIPS integrity test failed"
+    fips_info "fips-noboot: done!"
 fi