Browse Source

fix(fips): missing sourcing of dracut-lib

Make sure dracut-lib is sourced inside the fips-noboot script.
master
Antonio Alvarez Feijoo 2 years ago committed by Jóhann B. Guðmundsson
parent
commit
857b17f090
  1. 2
      modules.d/01fips/fips-noboot.sh

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

@ -1,5 +1,7 @@ @@ -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

Loading…
Cancel
Save