From 43cd3d5ab4a29dc5c9d66b077843b49a2b4b5275 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 29 Mar 2005 14:01:34 +0000 Subject: ensure we have a {lv_name} (esp. for auto_installs) --- perl-install/lvm.pm | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1