Remove /cgroup cleanup code from postinst.

This commit is contained in:
Michael Biebl 2011-08-03 16:28:07 +02:00 committed by Tollef Fog Heen
parent fc05c6ec8c
commit 4e2d2d07b4
2 changed files with 1 additions and 12 deletions

1
debian/changelog vendored
View File

@ -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

View File

@ -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