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

Michael Biebl biebl at debian.org
Sat Jun 3 18:44:31 BST 2017


Am 03.06.2017 um 17:24 schrieb Felipe Sateler:

> diff --git a/debian/udev.init b/debian/udev.init
> index ffef3ea6a..dcc5c29d5 100644
> --- a/debian/udev.init
> +++ b/debian/udev.init
> @@ -208,6 +208,7 @@ case "$1" in
>      stop)
>      log_daemon_msg "Stopping $DESC" "$NAME"
>      if start-stop-daemon --stop --name $NAME --user root --quiet --oknodo --retry 5; then
> +	rm -f /run/udev/control

I think this is the correct fix, yes.

We need to keep in mind though, that udev currently does not install any
stop (K) symlinks in runlevel 0 and 6, but we rely on the killing spree
in sendsigs to kill the udev process on shutdown.

Which means, we'd need to start installing those K symlinks in 0 6.
For that, edit /etc/init.d/udev, add
# Default-Stop: 0 6
to the LSB header, then run

# rm /etc/rcS.d/???udev
# update-rc.d udev defaults



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170603/1552b9d5/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list