From f6dc3d5ae91ff6a660cf71a92d4a3a120b1180a4 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 20 Dec 2011 01:42:36 -0600 Subject: cgroups: always mount the tmpfs on /sys/fs/cgroup X-Gentoo-Bug:395079 X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=395079 --- init.d/sysfs.in | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index a709e5d9..8809bda2 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -60,15 +60,8 @@ mount_misc() eend $? fi fi -} - -mount_cgroups() -{ - yesno ${rc_cgroups:-NO} || return 0 - if [ ! -e /proc/cgroups ]; then - return 0 - fi + # set up kernel support for cgroups if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then if grep -qs cgroup /proc/filesystems; then ebegin "Mounting cgroup filesystem" @@ -77,6 +70,14 @@ mount_cgroups() eend $? fi fi +} + +mount_cgroups() +{ + yesno ${rc_cgroups:-NO} || return 0 + if [ ! -e /proc/cgroups ]; then + return 0 + fi while read name hier groups enabled rest; do case "${enabled}" in -- cgit v1.2.3