Skip warnings when creating an LV https://www.virtualmin.com/node/71145

This commit is contained in:
Jamie Cameron
2021-06-27 12:40:55 -07:00
parent d93fe6c42e
commit 85990489cb

View File

@@ -426,7 +426,7 @@ return @rv;
sub create_logical_volume
{
local ($lv) = @_;
local $cmd = "lvcreate -n".quotemeta($lv->{'name'})." ";
local $cmd = "lvcreate -y -n".quotemeta($lv->{'name'})." ";
local $suffix;
if ($lv->{'size_of'} eq 'VG' || $lv->{'size_of'} eq 'FREE' ||
$lv->{'size_of'} eq 'ORIGIN') {