Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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 Doug Newgard (Scimmia) - Sunday, 09 December 2018, 20:10 GMT
Task Type Bug Report
Category Packages: Core
Status Assigned
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 6
Private No



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

2019-03-07: A task closure has been requested. Reason for request: Comments show misconfiguration
Comment by André (FredericChopin) - Friday, 07 December 2018, 08:43 GMT
Also downgrading to systemd 239.2-1 helped to get sd-encrypt working again.
Comment by Ingo Albrecht (indigo) - Saturday, 12 January 2019, 19:37 GMT
Not affected, but I noticed a report involving key-files:

Maybe you can add more info, e.g. the boot parameters?
Comment by Pedro Nariyoshi (nariox) - Thursday, 24 January 2019, 19:25 GMT
EDIT: I'm not affected, I was setting the wrong kernel parameters. See comment below for solution.

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
Comment by loqs (loqs) - Thursday, 24 January 2019, 19:33 GMT Comment by Pedro Nariyoshi (nariox) - Friday, 25 January 2019, 02:38 GMT
I'm so sorry. It's right there, in the wiki. Thank you for the support.