diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-02-16 15:49:20 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-02-16 15:49:20 +0200 |
commit | 9db7236ef6f3b374076615c019cb22559e06a669 (patch) | |
tree | 496b75ac6e552bd27b1516b56ca7750508bfd5f1 | |
parent | 10dbf35caee208b5d7261e40dca1f65e74faf7db (diff) | |
download | vmdb2-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.py | 3 |
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, |