LVMonLUKS, GPT/UEFI, won't start after installation

Hi All
Fresh Installation of EndeavourOS on VirtualBox, LVM on LUKS, GPT, UEFI

/dev/sda1 /boot/efi 320MiB Fat32 Efi System
/dev/sda2 /boot 1GiB ext4
/dev/sda3 LVMonLUKS
/dev/vg0/root / ext4
/dev/vg0/home /home ext4
  1. Due to Calamares closes LUKS and/or LVM device before trying to install to it
    To install system used script
while true
vgchange -ay

Then install with Calamares

  1. However, after installation have something like that
ERROR: device '/dev/mapper/vg0-root' not found, Skipping fsck.
mount: /new_root: special device /dev/mapper/vg0-root does not exist.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs ]#

Most probably grub need to be updated due to problem that it use /dev/disk/by-uuid instead of /dev/sda. I can change file grub.cfg, but what is next, how to chroot the system to update grub configuration.

Return inxi -Faz

First: welcome to the forum.
Second: Which tutorial did you use to install LVM on LUKS?

Welcome to the forum @wins :enos_flag:

thank you all for welcoming)
Do you need to use tutorial to install LVM on LUKS? :blush:
No, i did not.

So, I sorted it out.
What was done

sudo su

  1. Mount from live
mount /dev/mapper/vg0-root /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot
mount /dev/sda1 /mnt/boot/efi
mkdir -p /mnt/home
mount /dev/mapper/vg0-home /mnt/home
  1. Change the HOOKS=… line by adding encrypt and resume
xed /mnt/etc/mkinitcpio.conf
HOOKS="base udev autodetect modconf block keyboard keymap encrypt lvm2 resume filesystems fsck"
  1. Change default grub
xed /mnt/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="audit=0 loglevel=3"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/disk/by-uuid/YOUR_UUID:cryptlvm:allow-discards rd.luks.options=discard"
  1. and finally, looked in nearest same topic, update grub.cfg file
arch-chroot /mnt
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub
rm -rf /boot/efi/EFI/EndeavourOS
cp /boot/efi/EFI/EndeavourOS-grub/grubx64.efi /boot/efi/EFI/boot/bootx64.efi
  1. Unmount and reboot
umount -R /mnt

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.