update-grub cryptdevice kernel option missing
Specs:
- Manjaro 21.0.1
- Linux 5.10.26-1-MANJARO x86_64
- GRUB 2.04-22
When i do update-grub
it generates a buggy grub.cfg
The erroneous line is the one calling the linux
command
It doesn't add then kernel option cryptdevice
The full generetad line is:
linux /boot/vmlinuz-5.10-x86_64 root=UUID=e454a3cb-a8d2-46a5-a840-3ab0e3e34945 rw quiet udev.log_priority=3
But it should be:
linux /boot/vmlinuz-5.10-x86_64 root=UUID=e454a3cb-a8d2-46a5-a840-3ab0e3e34945 rw quiet udev.log_priority=3 cryptdevice=UUID=b0bfc399-c626-471e-b7b9-1c9519360e76:luks-b0bfc399-c626-471e-b7b9-1c9519360e76 root=/dev/mapper/luks-b0bfc399-c626-471e-b7b9-1c9519360e76
I've searched and searched and finally found Arch wiki's fix to this in https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Configuring_GRUB_2
I could find a solution because i'm an advanced user, but for most of the people this would be impossible to achieve, so i think it should be done automatically
Thx!