summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:28:24 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:28:24 +0000
commita2164f535fbeef5e5e197f81bf897423d43349b1 (patch)
tree98e015c786e4aa0980fd43ea1f8ef90144a96933 /perl-install/devices.pm
parent57be1bfedfe82267fac3bea3a5ae6d59e4bcb8c4 (diff)
downloaddrakx-a2164f535fbeef5e5e197f81bf897423d43349b1.tar
drakx-a2164f535fbeef5e5e197f81bf897423d43349b1.tar.gz
drakx-a2164f535fbeef5e5e197f81bf897423d43349b1.tar.bz2
drakx-a2164f535fbeef5e5e197f81bf897423d43349b1.tar.xz
drakx-a2164f535fbeef5e5e197f81bf897423d43349b1.zip
(ensure_dev_exists,getXenBlk,simple_partition_scan,should_prefer_UUID) add support for XenBlk discs
needs testing
Diffstat (limited to 'perl-install/devices.pm')
-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 3810f1f05..9e67042e4 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -212,7 +212,7 @@ sub make($) {
sub simple_partition_scan {
my ($part) = @_;
- $part->{device} =~ /([hsv]d[a-z])(\d+)$/;
+ $part->{device} =~ /((?:[hsv]|xv)d[a-z])(\d+)$/;
}
sub part_number {
my ($part) = @_;
@@ -230,7 +230,7 @@ sub prefix_for_dev {
sub should_prefer_UUID {
my ($dev) = @_;
- $dev =~ /^([hsv]d)/;
+ $dev =~ /^((?:[hsv]|xv)d)/;
}
sub symlink_now_and_register {