diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-01 10:54:14 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-01 10:54:14 +0200 |
commit | 6014d276b8b60c41f8e42504b37c9a6fac71e659 (patch) | |
tree | b2c958f1dc1e93f43f8aa95aa3cb75ae3dbfef8d | |
parent | 2ff98ec2d48fe9f842ebf379945a95fe2017d2b4 (diff) | |
download | vmdb2-6014d276b8b60c41f8e42504b37c9a6fac71e659.tar.gz |
give cryptsetup the --batch-mode option to prevent it asking
Sponsored-by: author
-rw-r--r-- | vmdb/plugins/cryptsetup_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |