dracut.sh: fixed checking for FIPS mode
authorHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 07:02:48 +0000 (09:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 07:02:48 +0000 (09:02 +0200)
dracut.sh

index 7071d05..5ac66b0 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1010,7 +1010,7 @@ mods_to_load=""
 for_each_module_dir check_module
 for_each_module_dir check_mount
 
-[[ "$mods_to_load " == *01fips\ * ]] && export DRACUT_FIPS_MODE=1
+dracut_module_included "fips" && export DRACUT_FIPS_MODE=1
 
 if [[ $print_cmdline ]]; then
     modules_loaded=" "