]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
used modules.<subsystem> if present for instmod =<subsystem>
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 13:35:19 +0000 (14:35 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 13:35:19 +0000 (14:35 +0100)
dracut-functions

index d38f990740d7e42e7d07deb013ae79185d4ccd9e..0808c31728284d636a35bec709a92e552fc3a79a 100755 (executable)
@@ -201,7 +201,13 @@ instmods() {
        mod=${1%.ko}
        mod=${mod##*/}
        case $mod in
-           =*) instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*");;
+           =*) 
+               if [ -f $srcmods/modules.${mod#=} ]; then
+                       instmods $mpargs $(cat  $srcmods/modules.${mod#=} )
+               else
+                       instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*")
+               fi
+               ;;
            --*) mpargs+=" $mod";;
            *) modprobe $mpargs --set-version $kernel --show-depends $mod \
                2>/dev/null |while read cmd modpath options; do