Unverified Commit ba1390c3 by tomponline Committed by Christian Brauner

Adds -qq flags to lvcreate commands to avoid answer 'no' to ant questions the…

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: 's avatartomponline <tomp@tomp.uk>
parent 669ffcff
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment