From: Antonio Alvarez Feijoo Date: Tue, 27 Dec 2022 08:30:43 +0000 (+0100) Subject: fix(fips): move fips-boot script to pre-pivot X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d777dd3dab50c2e383c00751fae5d9593339315f;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh index a3e560209..0e47c84e9 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