You are not logged in.

#1 2022-04-05 00:42:19

telmo
Member
Registered: 2020-06-18
Posts: 11

Trouble with LUKS (Waiting 10 seconds for device...)

I'm having trouble booting into my encrypted install:

During installation I'm booted in UEFI mode, my disk has a GPT partition table, I set up the disk as boot partition + encrypted root (no LVM) and install systemd-boot.

I've done the following to encrypt the disk and make the filesystem:

cryptsetup -y -v luksFormat /dev/sda2
cryptsetup open /dev/sda2 cryptroot
mkfs.ext4 /dev/mapper/cryptroot

I install the system as usual, everything seems okay.

Having the filesystem mounted, I edit /mnt/etc/mkinitcpio.conf and add "encrypt" just before "filesystems" in the uncommented HOOKS line.

I believe my problem is most likely in the kernel parameters.

I use

lsblk -f /dev/sda2 | grep sda2 | awk '{printf $4}'

to get the UUID for /dev/sda2 (where the encrypted filesystem is).

And set up my boot loader entry as:

title Arch Linux (linux-zen)
linux /vmlinuz-linux-zen
initrd /initramfs-linux-zen.img
options cryptdevice=UUID=3de93b58-97e7-4476-a518-d892a056a497:cryptroot root=/dev/mapper/cryptroot

When I try to boot into this boot loader entry I keep hanging on "Waiting 10 seconds for device /dev/mapper/cryptroot ..." until it doesn't find the device. What am I doing wrong?

https://i.imgur.com/9Nq9L9v.png


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2022-04-05 12:46:07)

Offline

#2 2022-04-05 12:41:42

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: Trouble with LUKS (Waiting 10 seconds for device...)

Offline

#3 2022-04-05 13:44:42

telmo
Member
Registered: 2020-06-18
Posts: 11

Re: Trouble with LUKS (Waiting 10 seconds for device...)

I was following the article but always ended up in this situation.

I just found out my issue though, I was not regenerating the initramfs after adjusting the hooks (which was not mentioned under "Configuring mkinitcpio" in the article).

So really, running

mkinitcpio -P

after editing mkinitcpio.conf did the trick.

Thank you for your time though.

Offline

#4 2022-04-05 14:02:34

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Trouble with LUKS (Waiting 10 seconds for device...)

telmo wrote:

I just found out my issue though, I was not regenerating the initramfs after adjusting the hooks (which was not mentioned under "Configuring mkinitcpio" in the article).

It does tell you to follow a link with more details though, which does tell you to regenerate your initramfs...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-04-05 14:07:53

telmo
Member
Registered: 2020-06-18
Posts: 11

Re: Trouble with LUKS (Waiting 10 seconds for device...)

Slithery wrote:
telmo wrote:

I just found out my issue though, I was not regenerating the initramfs after adjusting the hooks (which was not mentioned under "Configuring mkinitcpio" in the article).

It does tell you to follow a link with more details though, which does tell you to regenerate your initramfs...

Not sure which one you're mentioning, but I did just edit the page to add a line reminding the user to regenerate their initramfs, as to prevent other people from falling into the same pitfall that I fell.

Offline

Board footer

Powered by FluxBB