From c7c6053d6513768bc52100dae3e8a8b7ee035f8c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 28 Jan 2008 13:04:34 +0000 Subject: - detect raid partitions based on either type 0xfd or vol_id detecting linux_raid_member (#35684) for this, introduce field {type_name} --- perl-install/partition_table/lvm.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/lvm.pm b/perl-install/partition_table/lvm.pm index 5378d0bb2..57dab0bfc 100644 --- a/perl-install/partition_table/lvm.pm +++ b/perl-install/partition_table/lvm.pm @@ -24,10 +24,9 @@ sub _parts { sub read_primary { my ($hd) = @_; - my $wanted = fs::type::type_name2subpart('Linux Logical Volume Manager'); my $type = fs::type::type_subpart_from_magic($hd); - $type && $type->{pt_type} == $wanted->{pt_type} or return; + $type && $type->{type_name} eq 'Linux Logical Volume Manager' or return; partition_table::lvm->initialize($hd); 1; -- cgit v1.2.1