summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/partition_table')
-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;