Skip to main content
2 of 8
edited title

How to configure grub to boot from encrypted lvm partition [SOLVED]

I try to install Grub manually after Devuan installation, but I guess there is an error in configuration.

/etc/default/grub
GRUB_CMDLINE_LINUX=”cryptdevice=/dev/sda5:devuan-root:allow-discard”
GRUB_ENABLE_CRYPTODISK=yes

I boot from CD

cryptsetup luksOpen /dev/sda5 somename
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt/
grub-install --target=i386-pc /dev/sda

But after entering passphrase I receive

invalid passphrase 
no such cryptodisk found
disk ‘lvmid/..............’ not found