summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
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