summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-09-17 15:21:22 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-09-17 15:21:22 +0000
commitbfbcae09394c39eada721928cd974170d0705389 (patch)
tree40b9465e0609c86e9670002a14e96213285bc05d
parent988a17892dedfbaa45b0f2a7706facb69154b97c (diff)
downloaddrakx-bfbcae09394c39eada721928cd974170d0705389.tar
drakx-bfbcae09394c39eada721928cd974170d0705389.tar.gz
drakx-bfbcae09394c39eada721928cd974170d0705389.tar.bz2
drakx-bfbcae09394c39eada721928cd974170d0705389.tar.xz
drakx-bfbcae09394c39eada721928cd974170d0705389.zip
Handle virtio in devices.pm too
-rw-r--r--perl-install/devices.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 6b091be27..81270b09d 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -81,6 +81,10 @@ sub entry {
$type = c::S_IFBLK();
$major = 8;
$minor = 16 * (ord($1) - ord('a')) + ($2 || 0);
+ } elsif (/^(vd.)(\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();
} elsif (/^hd(.)(\d{0,2})/) {
$type = c::S_IFBLK();
($major, $minor) =