summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-02-16 15:49:20 +0200
committerLars Wirzenius <liw@liw.fi>2022-02-16 15:49:20 +0200
commit9db7236ef6f3b374076615c019cb22559e06a669 (patch)
tree496b75ac6e552bd27b1516b56ca7750508bfd5f1
parent10dbf35caee208b5d7261e40dca1f65e74faf7db (diff)
downloadvmdb2-9db7236ef6f3b374076615c019cb22559e06a669.tar.gz
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
-rw-r--r--vmdb/plugins/luks_plugin.py3
1 files changed, 2 insertions, 1 deletions
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,