diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-12-04 14:06:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-12-04 14:06:42 +0000 |
commit | 44cb3c97ead2986bf66ed956690ef1fee790c634 (patch) | |
tree | 84201a222d7cfeb310cd7db7caedc148e02d56b2 /perl-install/harddrake | |
parent | 59139c81890757f4bf4e42cc9cafb272c822f5c6 (diff) | |
download | drakx-backup-do-not-use-44cb3c97ead2986bf66ed956690ef1fee790c634.tar drakx-backup-do-not-use-44cb3c97ead2986bf66ed956690ef1fee790c634.tar.gz drakx-backup-do-not-use-44cb3c97ead2986bf66ed956690ef1fee790c634.tar.bz2 drakx-backup-do-not-use-44cb3c97ead2986bf66ed956690ef1fee790c634.tar.xz drakx-backup-do-not-use-44cb3c97ead2986bf66ed956690ef1fee790c634.zip |
do not list PATA controllers as SATA (alternative would be to just
list all ATA controllers together)
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/data.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm index c46e4cf25..13c0f303f 100644 --- a/perl-install/harddrake/data.pm +++ b/perl-install/harddrake/data.pm @@ -64,7 +64,7 @@ our @tree = string => N("SATA controllers"), icon => "ide_hd.png", configurator => "", - detector => sub { f(detect_devices::probe_category('disk/sata')) }, + detector => sub { f(grep { $_->{driver} !~ /^pata/ } detect_devices::probe_category('disk/sata')) }, checked_on_boot => 1, }, @@ -84,7 +84,8 @@ our @tree = icon => "ide_hd.png", configurator => "", detector => sub { f(detect_devices::probe_category('disk/ide')), - f(grep { $_->{media_type} =~ /STORAGE_(IDE|OTHER)/ } @devices) }, + f(grep { $_->{driver} =~ /^pata/ && $_->{media_type} =~ /IDE/ } @devices), + f(grep { $_->{media_type} =~ /STORAGE_(IDE|OTHER)/ } @devices) }, checked_on_boot => 1, }, |