From ac9a11835472a3ca7b0b903735a7b37a1fb196f9 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Sat, 30 May 2009 10:52:12 -0500 Subject: [PATCH] Fix bug in kernel module loading We were not loading all the required kernel modules due to a bug in the dependency checking code. This was causing us to load only the first dependent module and ignore the rest. --- dracut-functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dracut-functions b/dracut-functions index ec7d6c74..00e9f20b 100755 --- a/dracut-functions +++ b/dracut-functions @@ -295,10 +295,11 @@ instmods() { modname=${modpath##*/} modname=${modname%.ko} if [[ ${mod/-/_} != ${modname/-/_} ]]; then + dinfo "Installing dependencies for $mod ($modpath)" instmods $mpargs $modname - continue fi inst_simple "$modpath" + dinfo "Installing $modpath" done for fw in $(/sbin/modinfo -F firmware $mod 2>/dev/null); do if [[ -f /lib/firmware/$fw ]]; then