summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:34:32 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:34:32 +0000
commit9b51854c85f9759157d666b602ee25d02a4a8694 (patch)
treea29dfb25db9c90b32a4867662f6cef3dd0e89b8a /perl-install/detect_devices.pm
parentdecc60266ff4376fd7fce79c5e1052ddcb933907 (diff)
downloaddrakx-9b51854c85f9759157d666b602ee25d02a4a8694.tar
drakx-9b51854c85f9759157d666b602ee25d02a4a8694.tar.gz
drakx-9b51854c85f9759157d666b602ee25d02a4a8694.tar.bz2
drakx-9b51854c85f9759157d666b602ee25d02a4a8694.tar.xz
drakx-9b51854c85f9759157d666b602ee25d02a4a8694.zip
(getSCSI_26) be more robust (aka do not silently not detect hard disks
when kernel sysfs exports got changed)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index d143b12c0..4f00cf820 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -291,6 +291,7 @@ sub getSCSI_26() {
my $node = -e "$dir/block" ? "$dir/block" : top(glob_("$dir/block*"));
my ($device) = readlink($node) =~ m!/block/(.*)!;
+ die "cannot get info for device ($host, $channel, $id, $lun)" if !$device;
my $media_type = ${{ st => 'tape', sr => 'cdrom', sd => 'hd' }}{substr($device, 0, 2)};
# Old hp scanners report themselves as "Processor"s