From c63acf5f11efa9b74a8f87fea7ae548c55cb44bd Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sat, 17 Sep 2005 23:06:47 +0000 Subject: add sr_mod in modprobe.preload if needed (#18641) --- perl-install/detect_devices.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index da30a9533..b03785f6e 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -283,6 +283,8 @@ sub getSCSI_26() { # (see linux/include/scsi/scsi.h and sans-find-scanner.1) my $raw_type = $scsi_types[$get->('type')]; $media_type ||= 'scanner' if $raw_type =~ /Scanner|Processor/; + # if sr_mod isn't loaded, the block device may not be created yet + $media_type ||= 'cdrom' if $raw_type eq "CD-ROM"; { info => $get->('vendor') . ' ' . $get->('model'), host => $host, channel => $channel, id => $id, lun => $lun, bus => 'SCSI', media_type => $media_type, device => $device, -- cgit v1.2.1