summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/devices.pm')
-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();
}