summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-11-10 17:31:39 +0000
committerOlivier Blin <oblin@mandriva.com>2009-11-10 17:31:39 +0000
commit8a7d6cc196c0c9f522ff39b7ae030113bd1327a7 (patch)
treea4ad518f082f823a614e5ccc2978741e8dbb75a1
parent7133b7f18e35cd3096310730c2029e0de05012af (diff)
downloaddrakx-8a7d6cc196c0c9f522ff39b7ae030113bd1327a7.tar
drakx-8a7d6cc196c0c9f522ff39b7ae030113bd1327a7.tar.gz
drakx-8a7d6cc196c0c9f522ff39b7ae030113bd1327a7.tar.bz2
drakx-8a7d6cc196c0c9f522ff39b7ae030113bd1327a7.tar.xz
drakx-8a7d6cc196c0c9f522ff39b7ae030113bd1327a7.zip
fix handling hdX/sdX devices (#53107)
-rw-r--r--perl-install/devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 26c7599a0..6168973a8 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -158,7 +158,7 @@ sub entry {
} elsif (-e "/sys/block/$_/dev") {
$sysdev = "/sys/block/$_/dev";
$type = c::S_IFBLK();
- } elsif (/(.+)(\d+)$/ && -e "/sys/block/$1/$2/dev") {
+ } elsif (/^(.+)(\d+)$/ && -e "/sys/block/$1/$_/dev") {
$sysdev = "/sys/block/$_/dev";
$type = c::S_IFBLK();
}