From: Antonio Alvarez Feijoo Date: Tue, 14 Dec 2021 11:18:07 +0000 (+0100) Subject: fix(fips): missing sourcing of dracut-lib X-Git-Tag: 056~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857b17f090bdf575292f0bd6f5e8e3d753f6b426;p=thirdparty%2Fdracut.git fix(fips): missing sourcing of dracut-lib Make sure dracut-lib is sourced inside the fips-noboot script. --- diff --git a/modules.d/01fips/fips-noboot.sh b/modules.d/01fips/fips-noboot.sh index 1c026d9c6..f00c2f326 100755 --- a/modules.d/01fips/fips-noboot.sh +++ b/modules.d/01fips/fips-noboot.sh @@ -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