You are not logged in.
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
Offline
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
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...
Offline
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