]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
cgroup/cpuset can exist in fstab but be commented out. Handle that.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 22 Dec 2010 05:54:57 +0000 (05:54 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 22 Dec 2010 05:54:57 +0000 (05:54 +0000)
svn-id: @12019

rc.d/rc.sysinit

index ba6948374c5b2add61a8059ee1e41da39fc1cb73..fa164fda6844362f5a049e02fd043cb561d6d51a 100755 (executable)
@@ -272,7 +272,7 @@ if ! is_yes "$VSERVER"; then
 
        # cgroup/cpuset support
        if grep -q cgroup /proc/filesystems 2>/dev/null ; then
-               if ! grep -q cgroup /etc/fstab 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
                        # mount w/o options enables all available cgroup subsystems
@@ -280,7 +280,7 @@ if ! is_yes "$VSERVER"; then
                        mount -n -t cgroup none /dev/cgroup
                fi
        elif grep -q cpuset /proc/filesystems 2>/dev/null ; then
-               if ! grep -q cpuset /etc/fstab 2>/dev/null ; then
+               if ! grep -q "^[^#].*cpuset" /etc/fstab 2>/dev/null ; then
                        mount -n -t cpuset none /dev/cpuset
                fi
        fi
This page took 0.067287 seconds and 4 git commands to generate.