]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(fips): missing sourcing of dracut-lib
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 14 Dec 2021 11:18:07 +0000 (12:18 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 23:02:03 +0000 (23:02 +0000)
Make sure dracut-lib is sourced inside the fips-noboot script.

modules.d/01fips/fips-noboot.sh

index 1c026d9c6119560753747f5a3096afd4abb4b911..f00c2f326debad165740907111916aee040fbdb2 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
+
 if ! fipsmode=$(getarg fips) || [ "$fipsmode" = "0" ]; then
     rm -f -- /etc/modprobe.d/fips.conf > /dev/null 2>&1
 elif [ -z "$fipsmode" ]; then