Commit 63ff3eef authored by Michael Biebl's avatar Michael Biebl Committed by Tollef Fog Heen
Browse files

Create compat /dev/initctl symlink

in case we are upgrading from a system running a newer version of sysvinit
(using /run/initctl) and sysvinit is replaced with systemd-sysv during the
upgrade. Closes: #663219
parent 6de6107d
......@@ -10,6 +10,9 @@ systemd (44-1) UNRELEASED; urgency=low
[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
running a newer version of sysvinit (using /run/initctl) and sysvinit is
replaced with systemd-sysv during the upgrade. Closes: #663219
-- Tollef Fog Heen <tfheen@debian.org> Thu, 08 Mar 2012 15:16:10 +0100
......
#!/bin/sh
# We are installing systemd-sysv but systemd is not running.
# This most likely means we are upgrading from another init, possibly a newer
# sysvinit version which created the initctl socket at /run/initctl.
# systemd's sysv tools expect the socket at /dev/initctl, so create the compat
# symlink ourselves.
if [ ! -e /sys/fs/cgroup/systemd ] ; then
if [ ! -p /dev/initctl ] && [ -p /run/initctl ] ; then
ln -sf /run/initctl /dev/initctl
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment