From 66bc2949f735c3808704763e0648708fe43560c4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Jul 2021 14:35:11 +0300 Subject: fix: make lvcreate not ask questions The -qq option to lvcreate tells it to be quiet and to assume the answer to any question it may have is "no". Sponsored-by: author --- vmdb/plugins/lvcreate_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmdb/plugins/lvcreate_plugin.py b/vmdb/plugins/lvcreate_plugin.py index 8eee9f4..5e65b66 100644 --- a/vmdb/plugins/lvcreate_plugin.py +++ b/vmdb/plugins/lvcreate_plugin.py @@ -35,7 +35,7 @@ class LvcreateStepRunner(vmdb.StepRunnerInterface): lvname = values["name"] size = values["size"] - vmdb.runcmd(["lvcreate", "--name", lvname, "--size", size, vgname]) + vmdb.runcmd(["lvcreate", "-qq", "--name", lvname, "--size", size, vgname]) lvdev = "/dev/{}/{}".format(vgname, lvname) assert os.path.exists(lvdev) -- cgit v1.2.1