summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/lvm_PV.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/partition_table/lvm_PV.pm')
-rw-r--r--perl-install/partition_table/lvm_PV.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/partition_table/lvm_PV.pm b/perl-install/partition_table/lvm_PV.pm
index d7cefc080..b53867d5f 100644
--- a/perl-install/partition_table/lvm_PV.pm
+++ b/perl-install/partition_table/lvm_PV.pm
@@ -18,11 +18,12 @@ use c;
sub read {
- my ($hd, $sector) = @_;
+ my ($hd, $_sector) = @_;
+ require fs::type;
my $t = fs::type::type_subpart_from_magic($hd);
- $t && $t->{pt_type} eq 0x8e or die "bad magic number on disk $hd->{device}";
+ $t && $t->{pt_type} == 0x8e or die "bad magic number on disk $hd->{device}";
[];
}