FS#56733 - [systemd] Antomatic mounting of encrypted root fails with systemd 236.0-1
Attached to Project:
Arch Linux
Opened by Archer (justanarcher) - Friday, 15 December 2017, 14:47 GMT
Last edited by Christian Hesse (eworm) - Monday, 18 December 2017, 14:05 GMT
Opened by Archer (justanarcher) - Friday, 15 December 2017, 14:47 GMT
Last edited by Christian Hesse (eworm) - Monday, 18 December 2017, 14:05 GMT
|
Details
Description:
After upgrading to systemd 236.0-1, systemd no longer asks for password to my encrypted root partition, instead stopping at "waiting for /dev/mapper/root.mount". After waiting 90s I can continue booting by manually dropping into maintenance shell and doing: /usr/lib/systemd/systemd-cryptsetup attach root /dev/sdx mount /dev/mapper/root /new_root Additional info: From /proc/cmdline: rd.luks.name=<my-encrypted-partition-uuid>=root root=/dev/mapper/root. From /etc/mkinitcpio.conf: HOOKS=(base systemd sd-encrypt sd-vconsole autodetect block filesystems keyboard) I tried different combinations, rd.luks -> luks, passing uuid and then root=/dev/disk/by-uuid etc. Every one of them works with systemd 235.38-4 and none work with 236.0-1. I suspected crypsetup 2.0.0 is at fault, but systemd 235.38-4 is already built against it and works fine. Downgrading systemd and rebuilding mkinitcpio solves the issue. Steps to reproduce: Upgrade systemd to version 236.0-1 and reboot. |
This task depends upon
Closed by Christian Hesse (eworm)
Monday, 18 December 2017, 14:05 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 236.0-2
Monday, 18 December 2017, 14:05 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 236.0-2
[ 0.341366] systemd-cryptsetup-generator[101]: Out of memory.
[ 0.341711] systemd[100]: /usr/lib/systemd/system-generators/systemd-cryptsetup-generator failed with error code 1.
Kernel command line: rw luks.name=<UUID>=<NAME> luks.options=<UUID>=discard root=/dev/mapper/<ROOT>
Hooks: (systemd autodetect modconf block sd-encrypt filesystems keyboard fsck)
HOOKS="base systemd autodetect modconf keyboard sd-vconsole block sd-encrypt filesystems fsck"
kernel command line:
rd.luks.uuid=0b89b530-3bd6-4e52-8d24-790d2843229d rd.luks.options=discard root=UUID=41a255d4-9061-4b94-a761-35d22a38ed84 quiet rw zswap.enabled=1 acpi_osi=Linux modprobe.blacklist=iTCO_wdt intel_iommu=off
Edit: Oh, `sd-encrypt`. I'm using the `encrypt` hook. ;D
Now I can also confirm it works, systemd automatically asks for password.
https://github.com/systemd/systemd/commit/98bad05e75
Jan, will you care sending a pull request upstream?