summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-01-02 12:28:06 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-01-02 12:28:06 +0000
commit5102f7bfa628af60f29fc9415fea466e27969980 (patch)
tree5788f5afe2e77d8e2c43cb0388101a443232c1e6 /perl-install/detect_devices.pm
parenta7c35d9e1ec760d24754e6827076ee4f3fb95867 (diff)
downloaddrakx-backup-do-not-use-5102f7bfa628af60f29fc9415fea466e27969980.tar
drakx-backup-do-not-use-5102f7bfa628af60f29fc9415fea466e27969980.tar.gz
drakx-backup-do-not-use-5102f7bfa628af60f29fc9415fea466e27969980.tar.bz2
drakx-backup-do-not-use-5102f7bfa628af60f29fc9415fea466e27969980.tar.xz
drakx-backup-do-not-use-5102f7bfa628af60f29fc9415fea466e27969980.zip
better not dying (#20340) it looks like there do be some devices out
for which we failed to get proper data
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 5aab1bc12..c33fb80ac 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -292,7 +292,7 @@ sub getSCSI_26() {
# handle both old and new kernels:
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;
+ warn "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