summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-02 12:30:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-02 12:30:11 +0000
commitd0cf681719261295fb9c6680513487494b071498 (patch)
treeee02b919fb7e53abb16fc6032d20866e148526d2 /perl-install
parent6dc23d113c67fefe4f2c25dc8b84532976240972 (diff)
downloaddrakx-d0cf681719261295fb9c6680513487494b071498.tar
drakx-d0cf681719261295fb9c6680513487494b071498.tar.gz
drakx-d0cf681719261295fb9c6680513487494b071498.tar.bz2
drakx-d0cf681719261295fb9c6680513487494b071498.tar.xz
drakx-d0cf681719261295fb9c6680513487494b071498.zip
- no ide-scsi emulation for ide ZIPs
- no ide-scsi emulation for cd burners when kernel 2.6
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm6
-rw-r--r--perl-install/install_steps.pm6
2 files changed, 8 insertions, 4 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index ffd7626bf..283782bb0 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -50,11 +50,13 @@ sub zips() {
} raw_zips();
}
+sub faking_ide_scsi() { !$::isStandalone && !$::move && c::kernel_version() =~ /^\Q2.4/ }
+
sub cdroms__faking_ide_scsi() { grep { $_->{media_type} eq 'cdrom' } cdroms_and_zips__faking_ide_scsi() }
sub cdroms_and_zips__faking_ide_scsi() {
- my @l = grep { $_->{media_type} eq 'cdrom' || member($_->{media_type}, 'fd', 'hd') && isZipDrive($_) } get();
+ my @l = grep { $_->{media_type} eq 'cdrom' } get();
- if (my @l_need_fake = grep { !$::isStandalone && !$::move && $_->{bus} eq 'ide' && !($_->{media_type} eq 'cdrom' && !isBurner($_)) } @l) {
+ if (my @l_need_fake = grep { faking_ide_scsi() && $_->{bus} eq 'ide' && !($_->{media_type} eq 'cdrom' && !isBurner($_)) } @l) {
require modules;
modules::add_probeall('scsi_hostadapter', 'ide-scsi');
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index f89b82f47..8a9b017c6 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -806,8 +806,10 @@ sub setupBootloaderBefore {
my ($o) = @_;
require bootloader;
- if (my @l = (grep { $_->{bus} eq 'ide' } detect_devices::burners(), detect_devices::raw_zips())) {
- bootloader::set_append($o->{bootloader}, $_->{device}, 'ide-scsi') foreach @l;
+ if (detect_devices::faking_ide_scsi()) {
+ if (my @l = (grep { $_->{bus} eq 'ide' } detect_devices::burners())) {
+ bootloader::set_append($o->{bootloader}, $_->{device}, 'ide-scsi') foreach @l;
+ }
}
if ($o->{miscellaneous}{HDPARM}) {
bootloader::set_append($o->{bootloader}, $_, 'autotune') foreach grep { /ide/ } all("/proc/ide");