I have encrypted swap partition configured in /etc/crypttab: > swap /dev/sda2 /dev/urandom swap,cipher=aes,hash=sha256,size=256 Based on this systemd generates two units: - systemd-cryptsetup@swap.service (calls cryptsetup and mkswap) - dev-mapper-swap.device (requires systemd-cryptsetup@swap.service). Starting systemd-cryptsetup@swap.service succeeds, but > systemctl start dev-mapper-swap.device hangs indefinitely. In the journal I see that systemd-cryptsetup@swap.service successfully executes all commands and is marked started. But dev-mapper-swap.device does not start and there is no clue what blocks it. Another non-swap encrypted partition starts without any hangs or delays. This happens on Gentoo Linux with systemd-208-r2.
The problem has been tracked down to an incorrect kernel configuration: CONFIG_UEVENT_HELPER_PATH pointed to non-existent /sbin/hotplug. Changing this parameter value to an empty string and recompiling the kernel has fixed the hang, encrypted swap is mounted successfully. More details at https://bugs.gentoo.org/show_bug.cgi?id=493874 I think this bug may be closed.
OK, closing then.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.