Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > bd83eed6316a8b1c5c9b7e319c5581d0 > files > 6

mkinitrd-6.0.63-1mnb2.src.rpm

diff -p -up mkinitrd-6.0.28/mkinitrd.use-both-ahci-ata_piix mkinitrd-6.0.28/mkinitrd
--- mkinitrd-6.0.28/mkinitrd.use-both-ahci-ata_piix	2008-02-07 21:43:55.000000000 +0100
+++ mkinitrd-6.0.28/mkinitrd	2008-02-07 22:00:49.000000000 +0100
@@ -528,6 +528,10 @@ findstoragedriverinsys () {
             deps=$(basename $(readlink driver/module))
         for driver in $deps ; do
             findmodule $driver
+            # have both ata_piix and ahci so that you can still boot
+            # after changing the config in the BIOS
+            [ "$driver" = "ata_piix" ] && findmodule ahci
+            [ "$driver" = "ahci" ] && findmodule ata_piix
         done
         cd ..
     done