diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh index 808292af..8b955d44 100755 --- a/modules.d/01fips/module-setup.sh +++ b/modules.d/01fips/module-setup.sh @@ -12,7 +12,7 @@ depends() { # called by dracut installkernel() { - local _fipsmodules _mod + local _fipsmodules _mod _bootfstype if [[ -f "${srcmods}/modules.fips" ]]; then _fipsmodules="$(cat "${srcmods}/modules.fips")" else @@ -47,6 +47,16 @@ installkernel() { echo "blacklist $_mod" >> "${initdir}/etc/modprobe.d/fips.conf" fi done + + # with hostonly_default_device fs module for /boot is not installed by default + if [[ $hostonly ]] && [[ "$hostonly_default_device" == "no" ]]; then + _bootfstype=$(find_mp_fstype /boot) + if [[ -n "$_bootfstype" ]]; then + hostonly='' instmods $_bootfstype + else + dwarning "Can't determine fs type for /boot, FIPS check may fail." + fi + fi } # called by dracut