dracut-functions: check for missing dracut modules

If the user explicitly specified "-a <modules>" or "-m <modules>",
   warn him about possible missing modules.
master
Harald Hoyer 2011-03-07 13:08:13 +01:00
parent 5242d8fb57
commit 724b87a6f8
1 changed files with 9 additions and 0 deletions

View File

@ -651,6 +651,15 @@ check_module_dir() {
local mod=${moddir##*/}; mod=${mod#[0-9][0-9]}
check_module $mod 1
done

# Report any missing dracut modules, the user has specified
modcheck=$add_dracutmodules
[[ $dracutmodules != all ]] && modcheck="$m $dracutmodules"
for mod in $modcheck; do
strstr "$mods_to_load" "$mod" && continue
strstr "$omit_dracutmodules" "$mod" && continue
dwarning "Dracut module \"$mod\" cannot be found."
done
}

# Install a single kernel module along with any firmware it may require.