Browse Source

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.
master
Victor Lowther 16 years ago
parent
commit
ac9a118354
  1. 3
      dracut-functions

3
dracut-functions

@ -295,10 +295,11 @@ instmods() { @@ -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

Loading…
Cancel
Save