mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 15:01:57 +00:00
Adds -qq flags to lvcreate commands to avoid answer 'no' to ant questions the LVM subsystem asks to avoid hanging lxc-create command
Signed-off-by: tomponline <tomp@tomp.uk>
This commit is contained in:
parent
d25dcf18df
commit
d1acfd5471
@ -75,11 +75,11 @@ static int lvm_create_exec_wrapper(void *data)
|
||||
|
||||
(void)setenv("LVM_SUPPRESS_FD_WARNINGS", "1", 1);
|
||||
if (args->thinpool)
|
||||
execlp("lvcreate", "lvcreate", "--thinpool", args->thinpool,
|
||||
execlp("lvcreate", "lvcreate", "-qq", "--thinpool", args->thinpool,
|
||||
"-V", args->size, args->vg, "-n", args->lv,
|
||||
(char *)NULL);
|
||||
else
|
||||
execlp("lvcreate", "lvcreate", "-L", args->size, args->vg, "-n",
|
||||
execlp("lvcreate", "lvcreate", "-qq", "-L", args->size, args->vg, "-n",
|
||||
args->lv, (char *)NULL);
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user