summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-05-14 14:29:53 +0000
committerPascal Terjan <pterjan@mageia.org>2011-05-14 14:29:53 +0000
commite6ee78531a475cbbd55f152b1e16e4a4fee6b576 (patch)
treec36e881b8e2c1f95982a08189ea690fa5219ae74 /perl-install/fs
parentbffeb8c081f87a11c9c9302cf8d8eedeeb897cd1 (diff)
downloaddrakx-e6ee78531a475cbbd55f152b1e16e4a4fee6b576.tar
drakx-e6ee78531a475cbbd55f152b1e16e4a4fee6b576.tar.gz
drakx-e6ee78531a475cbbd55f152b1e16e4a4fee6b576.tar.bz2
drakx-e6ee78531a475cbbd55f152b1e16e4a4fee6b576.tar.xz
drakx-e6ee78531a475cbbd55f152b1e16e4a4fee6b576.zip
match partitions when one of them as device_alias to the device of the other one
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/get.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/fs/get.pm b/perl-install/fs/get.pm
index 8e49e91fa..461984431 100644
--- a/perl-install/fs/get.pm
+++ b/perl-install/fs/get.pm
@@ -144,7 +144,10 @@ sub is_same_hd {
} else {
$hd1->{device_LABEL} && $hd2->{device_LABEL} && $hd1->{device_LABEL} eq $hd2->{device_LABEL}
|| $hd1->{device_UUID} && $hd2->{device_UUID} && $hd1->{device_UUID} eq $hd2->{device_UUID}
- || $hd1->{device} && $hd2->{device} && $hd1->{device} eq $hd2->{device};
+ || $hd1->{device} && $hd2->{device} && $hd1->{device} eq $hd2->{device}
+ || $hd1->{device} && $hd2->{device_alias} && $hd1->{device} eq $hd2->{device_alias}
+ || $hd1->{device_alias} && $hd2->{device} && $hd1->{device_alias} eq $hd2->{device}
+ || $hd1->{device_alias} && $hd2->{device_alias} && $hd1->{device_alias} eq $hd2->{device_alias};
}
}