From 9db7236ef6f3b374076615c019cb22559e06a669 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 16 Feb 2022 15:49:20 +0200 Subject: feat: use luks2 and allow SSD discards This isn't yet tested on bare metal hardware. I need a .deb built from main to test easily. I'll revert this if testing fails. Sponsored-by: author --- vmdb/plugins/luks_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmdb/plugins/luks_plugin.py b/vmdb/plugins/luks_plugin.py index a28c296..2ed132b 100644 --- a/vmdb/plugins/luks_plugin.py +++ b/vmdb/plugins/luks_plugin.py @@ -73,8 +73,9 @@ class CryptsetupStepRunner(vmdb.StepRunnerInterface): "cryptsetup", "open", "--type", - "luks", + "luks2", "--key-file", + "--allow-discards", key_file, dev, crypt_name, -- cgit v1.2.1