]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add the special "=ata" case for instmods
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 14:09:44 +0000 (15:09 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 14:09:44 +0000 (15:09 +0100)
dracut-functions

index 0808c31728284d636a35bec709a92e552fc3a79a..6ca53d0ebcc3ca8603e38ee3fdae5b8c873cc21e 100755 (executable)
@@ -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#=}/*")