mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-14 05:15:56 +00:00
Remove /cgroup cleanup code from postinst.
This commit is contained in:
parent
fc05c6ec8c
commit
4e2d2d07b4
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -13,6 +13,7 @@ systemd (35-1) UNRELEASED; urgency=low
|
||||
* Add Build-Depends on intltool.
|
||||
* Do a one-time migration of the hwclock configuration. If UTC is set to
|
||||
"no" in /etc/default/rcS, create /etc/adjtime and add the "LOCAL" setting.
|
||||
* Remove /cgroup cleanup code from postinst.
|
||||
|
||||
-- Tollef Fog Heen <tfheen@debian.org> Wed, 14 Sep 2011 08:25:17 +0200
|
||||
|
||||
|
||||
12
debian/systemd.postinst
vendored
12
debian/systemd.postinst
vendored
@ -4,18 +4,6 @@ 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
|
||||
fi
|
||||
|
||||
# Do a one-time migration of the local time setting
|
||||
|
||||
Loading…
Reference in New Issue
Block a user