summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-24 16:21:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-24 16:21:03 +0000
commit61a44fbe6e97a227d9a4472bdf24bae535b3b445 (patch)
treebae6885bc8b074b222e045ab1afb354da73a0549 /perl-install
parent272a7f339aa75947b5c8430ab3ca59ec50566a38 (diff)
downloaddrakx-61a44fbe6e97a227d9a4472bdf24bae535b3b445.tar
drakx-61a44fbe6e97a227d9a4472bdf24bae535b3b445.tar.gz
drakx-61a44fbe6e97a227d9a4472bdf24bae535b3b445.tar.bz2
drakx-61a44fbe6e97a227d9a4472bdf24bae535b3b445.tar.xz
drakx-61a44fbe6e97a227d9a4472bdf24bae535b3b445.zip
ahci and ata_piix handle the same hardware, it only depends on the bios configuration, so try each one...
Diffstat (limited to 'perl-install')
-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;