Bug#791944: /etc/init.d/sendsigs kills systemd-udevd upon shutdown, causing dmsetup to hang

Guilhem Moulin guilhem at debian.org
Sat Jun 3 09:31:57 BST 2017


On Mon, 29 May 2017 at 14:42:33 +0200, Michael Biebl wrote:
> tags 791944 + help

I'm afraid I can't help backporting the fix to Stretch, but as Pali
mentioned this bug causes a severe regression for sysvinit users with
encrypted disks.

If udev can't be fixed in time maybe cryptsetup could ship a workaround
instead (although I don't know whether the regression affects other
dm-related services as well, such as mdadm or lvm).  I'm wondering if
the udev maintainers have any opinion on the following patch and
possible regressions.

--8<--------------------------------------------------------------------->8--
diff --git a/debian/cryptdisks.init b/debian/cryptdisks.init
index 286bc18..166122c 100644
--- a/debian/cryptdisks.init
+++ b/debian/cryptdisks.init
@@ -36,6 +36,7 @@ start)
 	do_start
 	;;
 stop)
+ 	/etc/init.d/udev status >/dev/null || rm -f /run/udev/control
 	do_stop
 	;;
 restart|reload|force-reload)
--8<--------------------------------------------------------------------->8--

Pali, could you confirm that it fixes the shutdown freeze on your
system?

Cheers,
-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170603/47a1cbae/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list