Control: tag -1 patch

hello,

the new dpkg version finally landed to testing, so I send you a little
patch to enable both --notify-await and --wait-daemon options

this patch was tested against dpkg 1.19.5 and udev 241-1 (unstable)

all is running fine! (boot and shutdown)

I would say a big thank you to everyone involved :)

Trek
diff --git a/debian/udev.init b/debian/udev.init
index 6a3c9b3926..cf9310734c 100644
--- a/debian/udev.init
+++ b/debian/udev.init
@@ -166,7 +166,8 @@ case "$1" in
 
     log_daemon_msg "Starting $DESC" "$NAME"
     if start-stop-daemon --start --name $NAME --user root --quiet \
-        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile; then
+        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile \
+        --notify-await; then
         # prevents udevd to be killed by sendsigs (see #791944)
         mkdir -p $OMITDIR
         ln -sf $PIDFILE $OMITDIR/$NAME
@@ -178,7 +179,7 @@ case "$1" in
     fi
 
     log_action_begin_msg "Synthesizing the initial hotplug events (subsystems)"
-    if udevadm trigger --type=subsystems --action=add; then
+    if udevadm trigger --type=subsystems --action=add --wait-daemon; then
         log_action_end_msg $?
     else
         log_action_end_msg $?
@@ -226,7 +227,8 @@ case "$1" in
 
     log_daemon_msg "Starting $DESC" "$NAME"
     if start-stop-daemon --start --name $NAME --user root --quiet \
-        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile; then
+        --pidfile $PIDFILE --exec $DAEMON --background --make-pidfile \
+        --notify-await; then
         # prevents udevd to be killed by sendsigs (see #791944)
         mkdir -p $OMITDIR
         ln -sf $PIDFILE $OMITDIR/$NAME
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to