From 50f338d07a4d177e72fc63ead3bf7d75c7d4853b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 5 Apr 2013 13:33:20 +0000 Subject: retrieve minor/major for LVs too thus fixing comparing in fs::get::is_same_hd(): 'device_alias' => 'mapper/vg--mga-root', with: 'device' => 'vg-mga/root', thus fixing removing LVM entries when saving /etc/fstab (mga#5811) --- perl-install/lvm.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/lvm.pm') diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm index e2eeb4cdc..5bca97af9 100644 --- a/perl-install/lvm.pm +++ b/perl-install/lvm.pm @@ -119,10 +119,13 @@ sub get_lvs { [ map { my $device = "$lvm->{VG_name}/$_"; + my $p = fs::wild_device::to_subpart("/dev/$device"); my $part = { device => $device, lv_name => $_, rootDevice => $lvm->{VG_name}, + minor => $p->{minor}, + major => $p->{major}, size => get_lv_size($device) }; if (my $type = -e "/dev/$device" && fs::type::type_subpart_from_magic($part)) { put_in_hash($part, $type); -- cgit v1.2.1