Commit 2bcec691 authored by Michael Stapelberg's avatar Michael Stapelberg
Browse files

do a one-time migration of RAMTMP=

from /etc/default/rcS and /etc/default/tmpfs, i.e. enable tmp.mount

Closes: #738687
parent 751b8ce6
systemd (204-8) UNRELEASED; urgency=low
[ Michael Stapelberg ]
* move manpages from systemd to libsystemd-*-dev as appropriate
(Closes: #738723)
* fix systemctl enable/disable/ error message Failed to issue method call:
No such file or directory (the previous upload did actually not contain
this fix due to a merge conflict) (Closes: #738843)
[ Michael Biebl ]
* do a one-time migration of RAMTMP= from /etc/default/rcS and
/etc/default/tmpfs, i.e. enable tmp.mount (Closes: #738687)
-- Michael Stapelberg <stapelberg@debian.org> Thu, 13 Feb 2014 22:52:45 +0100
systemd (204-7) unstable; urgency=low
......
......@@ -59,6 +59,20 @@ EOF
fi
fi
# Do a one-time migration of the RAMTMP setting
if dpkg --compare-versions "$2" lt "204-8"; then
if [ -f /etc/default/rcS ]; then
. /etc/default/rcS
fi
if [ -f /etc/default/tmpfs ]; then
. /etc/default/tmpfs
fi
if [ "$RAMTMP" = "yes" ]; then
# systemctl enable will work even when systemd is not the active PID 1.
systemctl enable tmp.mount || true
fi
fi
# Create /run/initctl → /dev/initctl compat symlink on upgrades
if [ -d /run/systemd/system ]; then
_systemctl restart systemd-initctl.socket || true
......
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