summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modules.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 456b9e92b..1c2ebe079 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -140,6 +140,12 @@ sub load_category {
eval { load_and_configure($conf, $_->{driver}, $_->{options}) };
$_->{error} = $@;
+ if ($_->{error} && member($_->{driver}, 'ahci', 'ata_piix')) {
+ #- HACK: ahci and ata_piix handle the same hardware, it only depends on the bios configuration
+ $_->{driver} = $_->{driver} eq 'ahci' ? 'ata_piix' : 'ahci';
+ redo;
+ }
+
$_->{try} = 1 if member($_->{driver}, 'hptraid', 'ohci1394'); #- do not warn when this fails
}
grep { !($_->{error} && $_->{try}) } @l;