From d777dd3dab50c2e383c00751fae5d9593339315f Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Tue, 27 Dec 2022 09:30:43 +0100 Subject: [PATCH] fix(fips): move fips-boot script to pre-pivot This is needed in s390x to be able to use the same `boot=` command line parameter in grub and zipl. Otherwise, `boot=` would need to be added only to `grub.cfg` (not `/etc/default/grub` and thereby not to `/boot/zipl/config`). Signed-off-by: Raymund Will --- modules.d/01fips/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh index a3e5602097..0e47c84e9a 100755 --- a/modules.d/01fips/module-setup.sh +++ b/modules.d/01fips/module-setup.sh @@ -62,7 +62,7 @@ installkernel() { # called by dracut install() { - inst_hook pre-mount 01 "$moddir/fips-boot.sh" + inst_hook pre-pivot 00 "$moddir/fips-boot.sh" inst_hook pre-pivot 01 "$moddir/fips-noboot.sh" inst_hook pre-udev 01 "$moddir/fips-load-crypto.sh" inst_script "$moddir/fips.sh" /sbin/fips.sh