grub-mkconfig -o /boot/grub/grub.cfg
I still get the same error.
]]>I tried installing arch with LVM on LUKS, however while trying to boot I get the following error.
ERROR: Device '/dev/mapper/MyVolGroup-root' not found. Skipping fsck.
It then drops me into an emergency shell.
The output of cat /proc/cmdline is the following.
BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/MyVolGroup-root rw cryptdevice=UUID=(device uuid):cryptlvm:allow-discards loglevel=3 quiet resume=/dev/mapper/MyVolGroup-swap
My hooks in /etc/mkinitcpio.conf are as follow.
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
my /etc/default/grub contains the following.
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=(device uuid):cryptlvm:allow-discards loglevel=3 quiet resume=/dev/mapper/MyVolGroup-swap"
I tried doing it manually with the following commands, this worked.
cryptsetup luksOpen /dev/nvme0n1p2 cryptlvm
lvm vgchange -a y
mount /dev/mapper/MyVolGroup-root /new_root
exit