You are not logged in.

#1 2022-10-17 01:58:30

groose
Member
Registered: 2022-10-16
Posts: 1

LVM on LUKS encrypted root won't boot

Hello, I have an encrypted LUKS root partition with LVM on top of it, with /boot as a separated unencrypted XBOOTLOADR partition, and /efi as a separated efi partition because I'm also dual-booting Windows
I used refind as my boot manager, and when I try to boot up Arch, it immediately boots to the emergency shell with the message

:: running hook [udev]
:: Triggering uevents...
:: running hook [keymap]
:: Loading keymap...done. 
Waiting 10 seconds for device /dev/archVolGroup/lv_home ...
ERROR device /dev/archVolGroup/lv_home not found; Skipping fsck.
:: mounting '/dev/archVolGroup/lv_home' on real root
mount /new_root: no filesystem type specified
You are being dropped into an emergency shell.

How can this be fixed? I have already regenerated the initramfs

#
# refind.conf
# Configuration file for the rEFInd boot menu
#
...
extra_kernel_version_strings linux-lts,linux

...

menuentry "Arch Linux" {
    icon     /EFI/refind/icons/os_arch.png
    volume   "Arch Linux"
    loader   /boot/vmlinuz-linux
    initrd   /boot/amd-ucode.img
    initrd   /boot/initramfs-linux.img
    options  "rd.luks.name=(UUID of LUKS root partition)=cryptlvm root=/dev/archVolGroup/lv_home rw add_efi_memmap"
    submenuentry "Boot using fallback initramfs" {
    initrd /boot/amd-ucode.img
        initrd /boot/initramfs-linux-fallback.img
    }
    submenuentry "Boot to terminal" {
        add_options "systemd.unit=multi-user.target"
    }
    disabled
}

refind_linux.conf:
"Boot with standard options"  "rd.luks.name=(UUID of LUKS root partition)=cryptlvm root=/dev/archVolGroup/lv_home rw initrd=amd-ucode.img initrd=initramfs-%v.img"

mkinitcpio:
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block sd-encrypt lvm2 filesystems fsck)

Offline

#2 2022-10-17 02:53:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: LVM on LUKS encrypted root won't boot

you can't use sd-encrypt with an busybox based initramfs.

https://wiki.archlinux.org/title/Mkinit … mmon_hooks

Offline

Board footer

Powered by FluxBB