From 4e2d2d07b4d6cf76ad685b2605ecb6979f72b757 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 3 Aug 2011 16:28:07 +0200 Subject: [PATCH] Remove /cgroup cleanup code from postinst. --- debian/changelog | 1 + debian/systemd.postinst | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/debian/changelog b/debian/changelog index d55870fe..4e84104f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 14 Sep 2011 08:25:17 +0200 diff --git a/debian/systemd.postinst b/debian/systemd.postinst index db76a6bc..6a4c5e99 100644 --- a/debian/systemd.postinst +++ b/debian/systemd.postinst @@ -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 -- 2.39.5