From 05fa95a70281908a03b89bd39a2d761fd4f16e23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 10 Feb 2011 12:12:48 +0000 Subject: [PATCH] - mount only cpuset subsys cgroup - no need to parse and check fstab as this script is run after rc.sysinit mounts all filessystems listed there svn-id: @12133 --- rc.d/init.d/cpusets | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/rc.d/init.d/cpusets b/rc.d/init.d/cpusets index ccefed28..a6b74b19 100755 --- a/rc.d/init.d/cpusets +++ b/rc.d/init.d/cpusets @@ -35,17 +35,11 @@ cpuset_mount() { [ -n "${CGDIR}" ] && return if grep -q cgroup /proc/filesystems 2>/dev/null ; then - if ! grep -q "^[^#].*cgroup" /etc/fstab 2>/dev/null ; then - # creating is more convenient than artificial conflict with older udev - mkdir -p /dev/cgroup - modprobe -s blk-cgroup 2>/dev/null - # mount w/o options enables all available cgroup subsystems - mount -t cgroup none /dev/cgroup - fi + # creating is more convenient than artificial conflict with older udev + mkdir -p /dev/cgroup + mount -t cgroup none /dev/cgroup -ocpuset elif grep -q cpuset /proc/filesystems 2>/dev/null ; then - if ! grep -q "^[^#].*cpuset" /etc/fstab 2>/dev/null ; then - mount -t cpuset none /dev/cpuset - fi + mount -t cpuset none /dev/cpuset else nls "ERROR: CGROUP/CPUSET support not enabled in kernel" >&2 exit 1 -- 2.44.0