Hi

I confirm that the supposition from the post
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622400#17 is correct.

Following patch corrects the problem. After correction udev installs cleanly on the system with systemd.

--- /root/udev.postinst 2011-04-13 21:18:07.000000000 +0200
+++ /var/lib/dpkg/info/udev.postinst    2011-04-13 20:05:09.000000000 +0200
@@ -39,10 +39,14 @@
 }

 restart_udevd() {
-  start-stop-daemon --stop --name udevd --oknodo --quiet --retry 5
-
   local rc=0
-  udevd --daemon || rc=$?
+  if [ "$(ps --pid 1 h -o ucmd)" = systemd ] ; then
+    # systemd is our service manager
+    systemctl restart udev.service || rc=$?
+  else
+    start-stop-daemon --stop --name udevd --oknodo --quiet --retry 5
+    udevd --daemon || rc=$?
+  fi
   if [ $rc -ne 0 ]; then
     echo "Cannot start udevd. (rc=$rc)"
     return $rc


Tomas



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to