From e483fa0dded288d599be3ea4e9499419b013f069 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 6 Mar 2012 18:09:20 +0100 Subject: [PATCH] Create initctl symlink on upgrades too --- debian/systemd.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/systemd.postinst b/debian/systemd.postinst index f176f80f..b6f83d54 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -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 -- 2.39.5