diff options
author | Antonio Alvarez Feijoo <antonio.feijoo@suse.com> | 2021-12-14 12:18:07 +0100 |
---|---|---|
committer | Jóhann B. Guðmundsson <johannbg@gmail.com> | 2022-02-02 23:02:03 +0000 |
commit | 857b17f090bdf575292f0bd6f5e8e3d753f6b426 (patch) | |
tree | defc845b10abd48c51f2f51504b20edbba97432b | |
parent | e8121bfddda34e20db889a74d4ac6259ed182aea (diff) | |
download | dracut-857b17f090bdf575292f0bd6f5e8e3d753f6b426.tar.gz |
fix(fips): missing sourcing of dracut-lib
Make sure dracut-lib is sourced inside the fips-noboot script.
-rwxr-xr-x | modules.d/01fips/fips-noboot.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/01fips/fips-noboot.sh b/modules.d/01fips/fips-noboot.sh index 1c026d9c..f00c2f32 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 |