summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-06-19 13:04:57 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-06-19 13:04:57 +0000
commitc5cfca81e636cdbe5b0c2a3b9723f7524dcdee22 (patch)
tree37aa1eb5dda34c5e9b343580d05dda8f47215f18 /perl-install/devices.pm
parentc926520c06e748eacadaa2af695d812c8b26c99f (diff)
downloaddrakx-c5cfca81e636cdbe5b0c2a3b9723f7524dcdee22.tar
drakx-c5cfca81e636cdbe5b0c2a3b9723f7524dcdee22.tar.gz
drakx-c5cfca81e636cdbe5b0c2a3b9723f7524dcdee22.tar.bz2
drakx-c5cfca81e636cdbe5b0c2a3b9723f7524dcdee22.tar.xz
drakx-c5cfca81e636cdbe5b0c2a3b9723f7524dcdee22.zip
handle virtio when looking for major/minor of a block device (#49339)
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 0423e3598..886e2e4f6 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -77,7 +77,7 @@ sub entry {
if (/^0x([\da-f]{3,4})$/i) {
$type = c::S_IFBLK();
($major, $minor) = unmakedev(hex $1);
- } elsif (/^(sd.)(\d{0,2})/) {
+ } elsif (/^([sv]d.)(\d{0,2})/) {
my $path = $2 ? "/sys/block/$1/$1$2/dev" : "/sys/block/$1/dev";
($major, $minor) = split(':', chomp_(cat_($path)));
$type = c::S_IFBLK();