]> err.no Git - systemd/commitdiff
Create initctl symlink on upgrades too
authorTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:09:20 +0000 (18:09 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:09:20 +0000 (18:09 +0100)
debian/systemd.postinst

index f176f80f023146b52f28a0c7be61db1d78f4b1ae..b6f83d5409a10b453d6e51cee28a9a138a27860c 100644 (file)
@@ -52,6 +52,11 @@ if dpkg --compare-versions "$2" lt "40-1"; then
     # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643699
     _systemctl stop lib-init-rw.automount lib-init-rw.mount || true
     rmdir --ignore-fail-on-non-empty /lib/init/rw || true
+
+    # Create /run/initctl → /dev/initctl compat symlink on upgrades
+    if [ -e /sys/fs/cgroup/systemd ]; then
+        ln -sf /dev/initctl /run/initctl
+    fi
 fi
 
 systemd-machine-id-setup