You are not logged in.

#1 2016-09-25 01:02:54

moonlies
Member
Registered: 2016-01-09
Posts: 32

[SOLVED] Systemd UEFI Boot fails to decrypt LUKS device (below LVM)

Hey Guys,

i followed the wiki instructions on setting up LVM on LUKS and tried to configure it to work with systemd-boot.
The following error appears when rebooting:

ERROR: device '/dev/mapper/MyVolGroup-root' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/mapper/MyVolGroup-root'.

I configured the bootloader-entry like this:
/boot/loader/entries/arch-encrypted.conf

title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUID1>:MyVolGroup:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw

My disc is structured like this:

sda
 | - sda1     (UUID0)     /boot
 | - sda2     (UUID1) crypto_LUKS
      | - lvm
           | - MyVolGroup-swap     (UUID2)
           | - MyVolGroup-root       (UUID3)     /

Can you tell me, what is wrong with this?

Last edited by moonlies (2016-09-25 10:00:02)

Offline

#2 2016-09-25 08:20:39

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [SOLVED] Systemd UEFI Boot fails to decrypt LUKS device (below LVM)

You haven't followed the wiki page, in particular https://wiki.archlinux.org/index.php/Dm … t_loader_2

Offline

#3 2016-09-25 09:39:42

moonlies
Member
Registered: 2016-01-09
Posts: 32

Re: [SOLVED] Systemd UEFI Boot fails to decrypt LUKS device (below LVM)

The version on the wiki page i tried at first and it did not work, so i tried the version in my post above.
The error messages were exactly the same. I also switched between the uuid of the actual device and the lvm, still no difference.

Things i tried as well:

title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUID1>:lvm:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw
title Arch Linux Encrypted
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=<UUIDofLVM>:lvm:allow-discards root=/dev/mapper/MyVolGroup-root resume=/dev/mapper/MyVolGroup-swap quiet rw

Offline

#4 2016-09-25 09:41:49

i716
Member
From: Yokohama, Japan
Registered: 2016-04-18
Posts: 70

Re: [SOLVED] Systemd UEFI Boot fails to decrypt LUKS device (below LVM)

Do you have encrypt (plymouth-encrypt if you're using plymouth) and lvm2 in your HOOKS line? Did you rebuild the ramdisk?

 sudo mkinitcpio -p linux 

I'm not using systemd-boot, but GRUB. My GRUB line looks like this:

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cryptdevice=/dev/sda4:main resume=/dev/mapper/main-swap lang=xx locale=xx_XX.UTF-8 nomodeset" 

As you can see, cryptdevice is only pointing at the vg, not the lg.

Offline

#5 2016-09-25 09:44:55

moonlies
Member
Registered: 2016-01-09
Posts: 32

Re: [SOLVED] Systemd UEFI Boot fails to decrypt LUKS device (below LVM)

Well i just looked into /etc/mkinitcpio.conf and saw, i forgot to add the encrypt hook...
Works fine now.

Offline

Board footer

Powered by FluxBB