Skip to content

Commit

Permalink
fix(fips): missing sourcing of dracut-lib
Browse files Browse the repository at this point in the history
Make sure dracut-lib is sourced inside the fips-noboot script.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Feb 2, 2022
1 parent e8121bf commit 857b17f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules.d/01fips/fips-noboot.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 857b17f

Please sign in to comment.