FS#60907 - [systemd] sd-encrypt hook fails
Attached to Project:
Arch Linux
Opened by Bario (barmadrid) - Sunday, 25 November 2018, 04:04 GMT
Last edited by Jan Alexander Steffens (heftig) - Saturday, 28 December 2019, 00:59 GMT
Opened by Bario (barmadrid) - Sunday, 25 November 2018, 04:04 GMT
Last edited by Jan Alexander Steffens (heftig) - Saturday, 28 December 2019, 00:59 GMT
|
Details
Description:
On latest systemd version 239.300-2 sd-encrypt hook fails for LUKS encrypted partition/device with error: A start job is running for dev-mapper-cryptroot.device ...and then dropping into the emergency shell. Chrooting using Arch ISO and switching to udev and encrypt hooks and regenerating initramfs fixes that. Hooks with issue reproduced: HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesystems fsck) |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Saturday, 28 December 2019, 00:59 GMT
Reason for closing: Works for me
Saturday, 28 December 2019, 00:59 GMT
Reason for closing: Works for me
https://github.com/systemd/systemd/issues/11090
Maybe you can add more info, e.g. the boot parameters?
I'm affected, not using key-files. Using systemd 240.34-3, the following hooks work:
HOOKS=(consolefont base udev autodetect encrypt lvm2 modconf block keyboard)
The ones below have the same behavior as Bario:
HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt sd-lvm2 filesystems fsck)
My systemd-boot entry is:
options cryptdevice=UUID=2dc109c6-48d5-42db-b303-7534a634c3c0:cryptlvm root=/dev/MyVolGroup/root bootflags=rw,noatime,nodiratime,compress=lzo,ssd,discard,space_cache,subvolid=257,subvol=/@ quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 audit=0 scsi_mod.use_blk_mq=1 add_efi_memmap i915.fastboot=1 fsck.mode=skip
The details are in "man 5 crypttab" and "man 8 systemd-cryptsetup-generator".
I prefer using crypttab. The sd-encrypt hook will use /etc/crypttab.initramfs as the initramfs' crypttab, so that's where you need to place the config to unlock the root fs.