From: Harald Hoyer Date: Mon, 7 Mar 2011 12:08:13 +0000 (+0100) Subject: dracut-functions: check for missing dracut modules X-Git-Tag: 009~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724b87a6f86ec6204f5f1c4a1771974f68d18128;p=thirdparty%2Fdracut.git dracut-functions: check for missing dracut modules If the user explicitly specified "-a " or "-m ", warn him about possible missing modules. --- diff --git a/dracut-functions b/dracut-functions index 64fe0f31b..d8827fcc2 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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.