summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-09-18 12:20:27 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-09-18 12:20:27 +0000
commit313975b39c9a84c9ff277b4cfcac596b724420f3 (patch)
treec3238af8e56d19389b3470bde28d401654836bf4
parentbfbcae09394c39eada721928cd974170d0705389 (diff)
downloaddrakx-313975b39c9a84c9ff277b4cfcac596b724420f3.tar
drakx-313975b39c9a84c9ff277b4cfcac596b724420f3.tar.gz
drakx-313975b39c9a84c9ff277b4cfcac596b724420f3.tar.bz2
drakx-313975b39c9a84c9ff277b4cfcac596b724420f3.tar.xz
drakx-313975b39c9a84c9ff277b4cfcac596b724420f3.zip
prefer UUID on VirtIO too
-rw-r--r--perl-install/devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 81270b09d..ad72d2856 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -198,7 +198,7 @@ sub make($) {
sub simple_partition_scan {
my ($part) = @_;
- $part->{device} =~ /([hs]d[a-z])(\d+)$/;
+ $part->{device} =~ /([vhs]d[a-z])(\d+)$/;
}
sub part_number {
my ($part) = @_;
@@ -216,7 +216,7 @@ sub prefix_for_dev {
sub should_prefer_UUID {
my ($dev) = @_;
- $dev =~ /^(hd|sd)/;
+ $dev =~ /^(hd|sd|vd)/;
}
sub symlink_now_and_register {