Hello, I've set up a LUKS encrypted partition, and a LVM group with home and root partitions there.
Then I've found out that fstrim command says that operation is not supported on encrypted volumes.
I've added a discard option to /etc/crypttab file and called dracut --force command.
Also I've added a discard option for every record of encrypted volumes at /etc/fstab file.
After reboot the fstrim command still says that operation is not supported on encrypted partitions.
The dmsetup command says nothing about discard option.
When I've booted into a live USB OS, I've mounted every partition manually, using cryptsetup --allow-discards and mount -o discard. The fstrim and e2fsck -E discard worked OK.
How should I allow automated TRIM command bypassing if I use LVM over LUKS?
Mageia 8 alpha.