You are not logged in.

#1 2024-02-28 00:06:59

j@s0n
Member
Registered: 2020-08-15
Posts: 45

Missed a step setting up dm-crypt root partition?

I just set up a new arch machine. I thought I did all the steps I did last time, but when I boot up, I get

ERROR: device 'UUID=...' not found. Skipping fsck.
mount: /new_root: can't find UUID=...
ERROR: Failed to mount 'UUID=...' on real root.

I set up dm-crypt like this:

# cryptsetup -y -v luksFormat /dev/nvme0n1p1
# cryptsetup open /dev/nvme0n1p1 root
# mkfs.ext4 /dev/mapper/root
# mount /dev/mapper/root /mnt

I updated HOOKS to this:

HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems fsck)

and reran mkinitcpio -P

I'm using GRUB with efibootmgr, and ran:

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
# grub-mkconfig -o /boot/grub/grub.cfg

Since I'm not using a plain root with encrypted /home or other partitions, I don't think I need to set up crypttab. But clearly I'm missing something. Any suggestions?

Offline

#2 2024-02-28 01:59:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,805

Re: Missed a step setting up dm-crypt root partition?

You have to add things to the kernel command line to tell the initramfs what to decrypt.

Offline

#3 2024-02-28 05:18:23

j@s0n
Member
Registered: 2020-08-15
Posts: 45

Re: Missed a step setting up dm-crypt root partition?

Scimmia wrote:

You have to add things to the kernel command line to tell the initramfs what to decrypt.

Do you know where that is in the wiki?

Offline

#4 2024-02-28 05:30:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,805

Re: Missed a step setting up dm-crypt root partition?

Offline

Board footer

Powered by FluxBB