From fd84747d5bd9cb052b151893c929b721f80de6dd Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Sun, 14 Jun 2020 22:03:47 +0200 Subject: Use batch mode of cryptsetup Without batch mode, cryptsetup asks for confirmation before doing a luks format of a device. When using vmdb, the user does not see the prompt and cryptsetup just sits there and waits for confirmation. Using --batch-mode or -q supresses this requirement for confirmation. --- vmdb/plugins/luks_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmdb/plugins/luks_plugin.py b/vmdb/plugins/luks_plugin.py index 9ea066c..531d570 100644 --- a/vmdb/plugins/luks_plugin.py +++ b/vmdb/plugins/luks_plugin.py @@ -75,7 +75,7 @@ class CryptsetupStepRunner(vmdb.StepRunnerInterface): state.tags.get_builder_mount_point(t)) assert 0 - vmdb.runcmd(['cryptsetup', 'luksFormat', dev, key_file]) + vmdb.runcmd(['cryptsetup', '-q', 'luksFormat', dev, key_file]) vmdb.runcmd( ['cryptsetup', 'open', '--type', 'luks', '--key-file', key_file, dev, crypt_name]) -- cgit v1.2.1