summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-18 11:21:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-18 11:21:43 +0000
commit7adbdf7b9f2bccda2dbac6ebea515a815e849bf2 (patch)
tree8b3a9f797a768d1cc14f0d64fbdf7f8d65c57b69 /perl-install/partition_table
parent07083a16b1e8ea933cb8b6f7f53cc6beca11ccc4 (diff)
downloaddrakx-backup-do-not-use-7adbdf7b9f2bccda2dbac6ebea515a815e849bf2.tar
drakx-backup-do-not-use-7adbdf7b9f2bccda2dbac6ebea515a815e849bf2.tar.gz
drakx-backup-do-not-use-7adbdf7b9f2bccda2dbac6ebea515a815e849bf2.tar.bz2
drakx-backup-do-not-use-7adbdf7b9f2bccda2dbac6ebea515a815e849bf2.tar.xz
drakx-backup-do-not-use-7adbdf7b9f2bccda2dbac6ebea515a815e849bf2.zip
handle "LVM on full disk" like other partition tables
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r--perl-install/partition_table/lvm.pm12
1 files changed, 12 insertions, 0 deletions
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;
+}