summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index c2b15e613..d04d7aeee 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -90,7 +90,7 @@ sub lv_delete {
sub lv_create {
my ($lvm, $lv) = @_;
my $list = $lvm->{primary}{normal};
- my $nb = 1 + max(map { basename($_) } @$list);
+ my $nb = 1 + max(map { basename($_->{device}) } @$list);
$lv->{device} = "/dev/$lvm->{LVMname}/$nb";
run_program::run_or_die('lvcreate', '--size', int($lv->{size} / 2) . 'k', '-n', $nb, $lvm->{LVMname});
push @$list, $lv;