[lxc-devel] [lxc/master] Adds -qq flags to lvcreate commands

tomponline on Github lxc-bot at linuxcontainers.org
Wed Nov 14 13:56:44 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 750 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181114/777d9b86/attachment.bin>
-------------- next part --------------
From 69c3b4746096cb9d51608d44a3751c30cd98caa6 Mon Sep 17 00:00:00 2001
From: tomponline <tomp at tomp.uk>
Date: Wed, 14 Nov 2018 13:55:18 +0000
Subject: [PATCH] Adds -qq flags to lvcreate commands to avoid answer 'no' to
 ant questions the LVM subsystem asks to avoid hanging lxc-create command

---
 src/lxc/storage/lvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/storage/lvm.c b/src/lxc/storage/lvm.c
index 6908e9066..c06e1a325 100644
--- a/src/lxc/storage/lvm.c
+++ b/src/lxc/storage/lvm.c
@@ -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;


More information about the lxc-devel mailing list