From bfbcae09394c39eada721928cd974170d0705389 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 17 Sep 2009 15:21:22 +0000 Subject: Handle virtio in devices.pm too --- perl-install/devices.pm | 4 ++++ 1 file changed, 4 insertions(+) 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) = -- cgit v1.2.1