From: Harald Hoyer Date: Fri, 6 Mar 2009 14:25:04 +0000 (+0100) Subject: fixed the use of e.g. instmods =drivers/foobar X-Git-Tag: 0.1~346 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfee8a70c0772c6a42fd78ef2252c28b14365d49;p=thirdparty%2Fdracut.git fixed the use of e.g. instmods =drivers/foobar --- diff --git a/dracut-functions b/dracut-functions index ccd0e0ecf..5cb230a63 100755 --- a/dracut-functions +++ b/dracut-functions @@ -199,7 +199,6 @@ instmods() { local mod mpargs modpath modname cmd while (($# > 0)); do mod=${1%.ko} - mod=${mod##*/} case $mod in =*) if [ "$mod" = "=ata" -a -f $srcmods/modules.block ] ; then @@ -211,7 +210,8 @@ instmods() { fi ;; --*) mpargs+=" $mod";; - *) modprobe $mpargs --set-version $kernel --show-depends $mod \ + *) mod=${mod##*/} + modprobe $mpargs --set-version $kernel --show-depends $mod \ 2>/dev/null |while read cmd modpath options; do [[ $cmd = insmod ]] || continue modname=${modpath##*/}