summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-19 16:27:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-19 16:27:20 +0000
commit52457bbff77a86b2e1bc58bb906b7d7e3828aea2 (patch)
tree0a93d36e889faf54ba34bbf925d53e3964ab6332 /perl-install/detect_devices.pm
parent6f440996828f5b573f7e2c1eef12786adeb830c1 (diff)
downloaddrakx-backup-do-not-use-52457bbff77a86b2e1bc58bb906b7d7e3828aea2.tar
drakx-backup-do-not-use-52457bbff77a86b2e1bc58bb906b7d7e3828aea2.tar.gz
drakx-backup-do-not-use-52457bbff77a86b2e1bc58bb906b7d7e3828aea2.tar.bz2
drakx-backup-do-not-use-52457bbff77a86b2e1bc58bb906b7d7e3828aea2.tar.xz
drakx-backup-do-not-use-52457bbff77a86b2e1bc58bb906b7d7e3828aea2.zip
add scsi Optical Device recognition (thanks to Michael Riss)
(without this, a hard drive following the optical device gets assigned sda whereas sda is the optical device and the hard drive really is sdb)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 51d7cd5ae..5f20432a2 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -184,7 +184,7 @@ sub getSCSI() {
each_index {
my $dev = "sd" . chr($::i + ord('a'));
put_in_hash $_, { device => $dev, media_type => isZipDrive($_) ? 'hd' : isFloppyOrHD($dev) };
- } grep { $_->{raw_type} =~ /Direct-Access/ } @l;
+ } grep { $_->{raw_type} =~ /Direct-Access|Optical Device/ } @l;
each_index {
put_in_hash $_, { device => "st$::i", media_type => 'tape' };