run cryptsetup in batch mode

This commit is contained in:
Andreas Zweili 2021-12-19 20:12:52 +01:00
parent e17f5263f7
commit 0dd3df4331
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def _create_swap_partition(disk):
def _encrypt_disk(partition_path, container_name):
print("Encrypting disk.")
_run_command(["cryptsetup", "luksFormat",
_run_command(["cryptsetup", "luksFormat", "-q"
"--type", "luks1", partition_path])
_run_command(["cryptsetup", "open", partition_path, "cryptlvm"])