summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) =