Commit e7ab0fc6 authored by Michael Biebl's avatar Michael Biebl
Browse files

Fix up /dev/log and /dev/initctl symlinks on upgrades

The /dev/log socket and /dev/initctl FIFO have been moved to /run and
replaced by symlinks. Create the symlinks manually on upgrades as well.

Closes: #761340
parent 888a8135
......@@ -10,6 +10,9 @@ systemd (215-3) UNRELEASED; urgency=medium
[ Michael Biebl ]
* Update upstream v215-stable patch series.
* The /dev/log socket and /dev/initctl FIFO have been moved to /run and
replaced by symlinks. Create the symlinks manually on upgrades as well.
(Closes: #761340)
-- Martin Pitt <mpitt@debian.org> Mon, 08 Sep 2014 12:58:27 +0200
......
......@@ -139,4 +139,16 @@ if [ -n "$2" ]; then
_systemctl try-restart systemd-timesyncd.service || true
fi
# The /dev/log socket and /dev/initctl FIFO have been moved to /run and
# replaced by symlinks. Create the symlinks manually on upgrades as well.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761340
if dpkg --compare-versions "$2" lt-nl "215-3"; then
if [ -p /run/systemd/initctl/fifo ] && [ ! -L /dev/initctl ]; then
ln -sf /run/systemd/initctl/fifo /dev/initctl
fi
if [ -S /run/systemd/journal/dev-log ] && [ ! -L /dev/log ]; then
ln -sf /run/systemd/journal/dev-log /dev/log
fi
fi
#DEBHELPER#
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