summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/lvm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-28 13:04:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-28 13:04:34 +0000
commitc7c6053d6513768bc52100dae3e8a8b7ee035f8c (patch)
treea99c6fecfe4a36edced8f8ac8ea6e19af983361f /perl-install/partition_table/lvm.pm
parent779783e6de065e9c6b8757e88ac681a0445d1eca (diff)
downloaddrakx-c7c6053d6513768bc52100dae3e8a8b7ee035f8c.tar
drakx-c7c6053d6513768bc52100dae3e8a8b7ee035f8c.tar.gz
drakx-c7c6053d6513768bc52100dae3e8a8b7ee035f8c.tar.bz2
drakx-c7c6053d6513768bc52100dae3e8a8b7ee035f8c.tar.xz
drakx-c7c6053d6513768bc52100dae3e8a8b7ee035f8c.zip
- detect raid partitions based on either type 0xfd or vol_id detecting
linux_raid_member (#35684) for this, introduce field {type_name}
Diffstat (limited to 'perl-install/partition_table/lvm.pm')
-rw-r--r--perl-install/partition_table/lvm.pm3
1 files changed, 1 insertions, 2 deletions
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;