From: Harald Hoyer Date: Fri, 6 Mar 2009 14:09:44 +0000 (+0100) Subject: add the special "=ata" case for instmods X-Git-Tag: 0.1~348 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=86c9fa484735d55f7e64bbe47a949aab1dfa8373;p=thirdparty%2Fdracut-ng.git add the special "=ata" case for instmods --- diff --git a/dracut-functions b/dracut-functions index 0808c3172..6ca53d0eb 100755 --- a/dracut-functions +++ b/dracut-functions @@ -202,7 +202,9 @@ instmods() { mod=${mod##*/} case $mod in =*) - if [ -f $srcmods/modules.${mod#=} ]; then + if [ "$mod" = "=ata" -a -f $srcmods/modules.block ] ; then + instmods $mpargs $(cat "${modcat}.block" |egrep 'ata|ahci');; + elif [ -f $srcmods/modules.${mod#=} ]; then instmods $mpargs $(cat $srcmods/modules.${mod#=} ) else instmods $mpargs $(find "$srcmods" -path "*/${mod#=}/*")