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:
tomponline 2018-11-14 13:55:18 +00:00
parent d25dcf18df
commit d1acfd5471

View File

@ -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;