From 7adbdf7b9f2bccda2dbac6ebea515a815e849bf2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 18 Sep 2007 11:21:43 +0000 Subject: handle "LVM on full disk" like other partition tables --- perl-install/partition_table/lvm.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/lvm.pm b/perl-install/partition_table/lvm.pm index b0bc88cf3..0e8090772 100644 --- a/perl-install/partition_table/lvm.pm +++ b/perl-install/partition_table/lvm.pm @@ -23,3 +23,15 @@ sub initialize { bless $hd, $class; } + +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; + + partition_table::lvm->initialize($hd); + 1; +} -- cgit v1.2.1