Subject: bug#261: eudev: System with encrypted root fs and swap fails to shutdown cleanly

From: "Nik Wrt" <[email-masked]>
Date: Sat, 17 Nov 2018 10:38:46 +0100

Package: eudev
Version: 3.2.2-13
Severity: normal

On a fresh Devuan ASCII install with encrypted root and swap (no LVM, no RAID), I am experiencing exactly the same symptom described in the first post of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792552 i.e.

Stopping remaining crypto disks
sda2_crypt (busy)...

and the system hangs for a long time before powering off.
 
This behavior on debian stretch was determined to be caused by a bug in the udev init scripts when using sysvinit, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791944
 
The relevant fix is in the commit
 
https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb1d8806247f986d0c0f7e67