summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-29 14:01:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-29 14:01:34 +0000
commit43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275 (patch)
tree8f532234ad722ca6868f991d642946e8815594b7 /perl-install
parenta6e830dd34f7284bcf73654931f2d2dcd8f876a2 (diff)
downloaddrakx-43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275.tar
drakx-43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275.tar.gz
drakx-43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275.tar.bz2
drakx-43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275.tar.xz
drakx-43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275.zip
ensure we have a {lv_name} (esp. for auto_installs)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/lvm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 4499b9a1f..6f9ac2a20 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -136,6 +136,7 @@ sub suggest_lv_name {
sub lv_create {
my ($lvm, $lv) = @_;
+ suggest_lv_name($lvm, $lv);
$lv->{device} = "$lvm->{VG_name}/$lv->{lv_name}";
lvm_cmd_or_die('lvcreate', '--size', int($lv->{size} / 2) . 'k', '-n', $lv->{lv_name}, $lvm->{VG_name});
$lv->{size} = get_lv_size($lv->{device}); #- the created size is smaller than asked size