From: Harald Hoyer Date: Fri, 6 Mar 2009 13:35:19 +0000 (+0100) Subject: used modules. if present for instmod = X-Git-Tag: 0.1~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20122a83f87836c76f71a6fd4cbe8db1b0563315;p=thirdparty%2Fdracut.git used modules. if present for instmod = --- diff --git a/dracut-functions b/dracut-functions index d38f99074..0808c3172 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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