summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/partition_table/lvm.pm')
-rw-r--r--perl-install/partition_table/lvm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table/lvm.pm b/perl-install/partition_table/lvm.pm
index 91a9dfbc5..b0bc88cf3 100644
--- a/perl-install/partition_table/lvm.pm
+++ b/perl-install/partition_table/lvm.pm
@@ -13,7 +13,7 @@ use fs::type;
use lvm;
sub initialize {
- my ($hd) = @_;
+ my ($class, $hd) = @_;
my $part = { size => $hd->{totalsectors}, device => $hd->{device} };
add2hash($part, fs::type::type_name2subpart('Linux Logical Volume Manager'));
@@ -21,5 +21,5 @@ sub initialize {
$hd->{readonly} = $hd->{getting_rid_of_readonly_allowed} = 1;
$hd->{primary}{normal} = [ $part ];
- bless $hd, 'partition_table::lvm';
+ bless $hd, $class;
}