mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-16 18:56:05 +00:00
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -n "$2" ]; then
|
|
systemctl daemon-reexec || true
|
|
|
|
if dpkg --compare-versions "$2" lt "11-2"; then
|
|
if [ -e /proc/mounts ]; then
|
|
mounts=$(awk '/ \/cgroup/ {print $2}' < /proc/mounts | sort -r)
|
|
for m in $mounts; do
|
|
umount "$m" || true;
|
|
done
|
|
fi
|
|
if [ -d /cgroup ]; then
|
|
rmdir --ignore-fail-on-non-empty /cgroup
|
|
fi
|
|
fi
|
|
# Do a one-time migration of the local time setting
|
|
if dpkg --compare-versions "$2" lt "33-1"; then
|
|
. /etc/default/rcS
|
|
if [ $UTC ="no" ] && [ ! -e /etc/adjtime ]; then
|
|
echo "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
systemd-machine-id-setup
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/lsb-base-logging.sh 20-1 systemd -- "$@"
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/legacy.conf 25-2 systemd -- "$@"
|
|
dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/systemd.conf 25-2 systemd -- "$@"
|
|
dpkg-maintscript-helper rm_conffile /etc/tmpfiles.d/x11.conf 25-2 systemd -- "$@"
|
|
|
|
#DEBHELPER#
|