You are not logged in.

#1 2020-08-22 19:17:50

whoop
Member
Registered: 2009-05-28
Posts: 101

[SOLVED] sd-encrypt hook using systemd-boot

I want to add a new hdd to an existing system and I want to automount it using the same luks passphrase as root (without entering it twice). I want to switch from using the encrypt hook to the sd-encrypt hook for mkinitcpio.
The current system is working with luks encrypted root running on subvolume @, the encrypt hook and the system uses UEFI vfat /boot.


current /etc/mkinitcpio.conf hooks:

HOOKS=(base udev systemd btrfs autodetect modconf block filesystems keyboard encrypt fsck)

So I replaced encrypt with sd-encrypt

current working /boot/loader/entries/arch.conf:

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options cryptdevice=UUID=<device-UUID>:cryptroot root=/dev/mapper/cryptroot rootflags=subvol=@ rw

So I tried allot of things in a VM for systemd-boot like:

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options rd.luks.name=<device-UUID>=cryptroot root=/dev/mapper/cryptroot rootflags=subvol=@ rw

But nothing I try seems to be working.
It always waits for /dev/mapper/cryptroot for 10 seconds and than stops...

Anybody able to help me out?
Thanks...

Last edited by whoop (2020-08-23 19:13:57)

Offline

#2 2020-08-23 19:15:24

whoop
Member
Registered: 2009-05-28
Posts: 101

Re: [SOLVED] sd-encrypt hook using systemd-boot

Solved by fixing a typo in mkinitcpio.conf.

this works:

options rd.luks.name=<device-UUID>=cryptroot root=/dev/mapper/cryptroot rootflags=subvol=@ rw

Sorry about that...

Last edited by whoop (2020-08-23 19:15:46)

Offline

Board footer

Powered by FluxBB