systemd (36-2) unstable; urgency=low
+ [ Tollef Fog Heen ]
* Change the type of the debian-fixup service to oneshot.
Closes: #642961
* Add ConditionPathIsDirectory to lib-init-rw.automount and
* Blacklist fuse init script, we do the same work already internally.
Closes: #643700
+ [ Josh Triplett ]
+ * Do a one-time migration of the $TMPTIME setting from /etc/default/rcS to
+ /etc/tmpfiles.d/tmp.conf. If /etc/default/rcS has a TMPTIME setting of
+ "infinite" or equivalent, migrate it to an /etc/tmpfiles.d/tmp.conf that
+ overrides the default /usr/lib/tmpfiles.d/tmp.conf and avoids clearing
+ /tmp. Closes: #643698
+
-- Tollef Fog Heen <tfheen@debian.org> Wed, 28 Sep 2011 20:04:13 +0200
systemd (36-1) unstable; urgency=low
fi
fi
+# Do a one-time migration of the TMPTIME setting
+if dpkg --compare-versions "$2" lt "36-2"; then
+ if [ -f /etc/default/rcS ]; then
+ . /etc/default/rcS
+ fi
+ if [ ! -e /etc/tmpfiles.d/tmp.conf ]; then
+ case "$TMPTIME" in
+ -*|infinite|infinity)
+ cat > /etc/tmpfiles.d/tmp.conf <<EOF
+# Automatically migrated from TMPTIME in /etc/default/rcS
+# Clear /var/tmp as in /usr/lib/tmpfiles.d/tmp.conf, but avoid clearing /tmp
+d /var/tmp 1777 root root 30d
+EOF
+ ;;
+ esac
+ fi
+fi
+
systemd-machine-id-setup
dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@"