You are not logged in.

#1 2024-04-02 13:55:57

FawnKnight
Member
Registered: 2024-04-02
Posts: 3

No password prompt on boot for luks-encrypted root device

Hey guys,
I am trying to set up Arch with an encrypted root device on my laptop.
Disk setup as follows:

nvme0n1
- (several partitions w/ Windows installation)
- nvme0n1p5  (used as swap)
- nvme0n1p6 UUID=E93...  /boot FAT32
- nvme0n1p7 UUID=7f2... containing encrypted home partition (name ArchRoot)
/dev/mapper/ArchRoot UUID=e2a... / ext4

mkinitcpio.conf

...
HOOKS=(base udev keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesytes fsck)
...

Kernel params in /boot/grub/grub.cfg

linux /vmlinuz-linux cryptdevice=UUID=7f2...:ArchRoot root=UUID=e2a... rw loglevel=3

Instead of showing the expected password prompt (no keyfile used) on boot, it says "Waiting 10 seconds for 7f2...", after the timeout, I'm dropped to the rootfs shell.

Plymouth is not installed (afer booting live environment, unlocking the disk (which works fine) and arch-chroot'ing into the installation,

pacman -Q plymouth

returns nothing), so it isn't the problem that plymouth swallows the promt.

Any idea? Reading and searching didn't lead me anywhere.

Kind Regards

Offline

#2 2024-04-04 10:57:25

FawnKnight
Member
Registered: 2024-04-02
Posts: 3

Re: No password prompt on boot for luks-encrypted root device

Maybe anyone with a working configuration could post his or her grub.cfg, mkinitcpio.conf and partition setup?

Offline

#3 2024-04-04 15:13:28

seth
Member
Registered: 2012-09-03
Posts: 57,256

Re: No password prompt on boot for luks-encrypted root device

The cryptdevice (ie. the partition holding the encrypted one, nvme0n1p7) doesn't show up.
From the live environment, post "lsblk -f"

Also "filesytes" is a typo, make sure it's not in the mkinitcpio.conf
If the UUIDs and DM name (ArchRoot) are all correct (the latter is case sensitive and there's no margin for error here) try to regenerate the initrmfs.
There's also been https://bbs.archlinux.org/viewtopic.php?id=286293 which would hint at trying sd-encrypt, https://wiki.archlinux.org/title/Dm-cry … n#Examples

Offline

#4 2024-04-10 14:41:28

FawnKnight
Member
Registered: 2024-04-02
Posts: 3

Re: No password prompt on boot for luks-encrypted root device

Okay.. I thought to have it checked 3 times.. but apparently that wasn't enough. There was a typo in the UUID. Now it's corrected and it works. Thank you!

Offline

#5 2024-04-10 14:44:42

seth
Member
Registered: 2012-09-03
Posts: 57,256

Re: No password prompt on boot for luks-encrypted root device

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB