From 6014d276b8b60c41f8e42504b37c9a6fac71e659 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jan 2022 10:54:14 +0200 Subject: give cryptsetup the --batch-mode option to prevent it asking Sponsored-by: author --- vmdb/plugins/cryptsetup_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmdb/plugins/cryptsetup_plugin.py b/vmdb/plugins/cryptsetup_plugin.py index 88715a5..32478fe 100644 --- a/vmdb/plugins/cryptsetup_plugin.py +++ b/vmdb/plugins/cryptsetup_plugin.py @@ -42,5 +42,5 @@ class CryptsetupStepRunner(vmdb.StepRunnerInterface): key = os.path.join(tmp, "key") with open(key, "w") as f: f.write(password) - vmdb.runcmd(["cryptsetup", "luksFormat", device, key]) + vmdb.runcmd(["cryptsetup", "--batch-mode", "luksFormat", device, key]) shutil.rmtree(tmp) -- cgit v1.2.1