You are not logged in.
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=@ rwSo 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=@ rwBut 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
Solved by fixing a typo in mkinitcpio.conf.
this works:
options rd.luks.name=<device-UUID>=cryptroot root=/dev/mapper/cryptroot rootflags=subvol=@ rwSorry about that...
Last edited by whoop (2020-08-23 19:15:46)
Offline