summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-05 11:34:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-05 11:34:22 +0000
commitaf5226b8b458b582ce2d2cf0c11e39941b3e7b4e (patch)
tree192e47f946a76f22d09473955c5a3d4f5bce3f91 /perl-install
parent0a6edb57d93f5b1cecb1afa1261d20b9eb9f8917 (diff)
downloaddrakx-af5226b8b458b582ce2d2cf0c11e39941b3e7b4e.tar
drakx-af5226b8b458b582ce2d2cf0c11e39941b3e7b4e.tar.gz
drakx-af5226b8b458b582ce2d2cf0c11e39941b3e7b4e.tar.bz2
drakx-af5226b8b458b582ce2d2cf0c11e39941b3e7b4e.tar.xz
drakx-af5226b8b458b582ce2d2cf0c11e39941b3e7b4e.zip
(lv_create): fix typo
Diffstat (limited to 'perl-install')
-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;