Spent an hour or so this morning wondering how to get my Debian initramfs to activate my LUKS-encrypted partition with --allow-discards. I know it's less secure, but as long as
wrenches are still cheap I'm fine with sub-standard security if it means my hardware will perform better for longer. :-)
The trick is to add a flag "discard" to your crypttab, like this:
CODE:
wilmer@peer:~$ cat /etc/crypttab
sda2_crypt /dev/sda2 none luks,discard
And then of course rebuild your initramfs (update-initramfs -u) and reboot, etc.
You do need cryptsetup 1.4 or higher for this to work. I had to manually install that package (only
twenty or so days old) from sid on my testing laptop.
Recent comments