-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRIM support #286
Comments
Possible workaround:
(I haven't tested this, so please confirm here if it works) |
Opening with --persistent works (on running system also works cryptsetup --allow-discards --persistent refresh /dev/xxx) |
Pull #317 added support for optional arguments to be passed to cryptsetup but for some reason, even if added to master since February 6th 2023, it has not been added to Clevis releases. This enables LUKS1 encrypted disks to use trim since --allow-discards can be passed through Clevis as follows (instead of using persistent flags)
You can either overwrite the Optionally also update what's found in To repackage for Debian/Ubuntu just use dpkg-deb, a nifty little guide to repack with this method can be found here. I tested this on Ubuntu 22 with Clevis 18 and Ubuntu 23 with Clevis 19 and it works flawlessly. |
clevis doesn't unlock LUKS volumes with the
discard
option and as such, no volumes underneath it can support TRIM:The text was updated successfully, but these errors were encountered: