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
This commit is contained in:
William Hubbs 2011-12-20 01:42:36 -06:00
parent 3e2001f6a2
commit f6dc3d5ae9

View File

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