diff options
author | William Hubbs <williamh@gentoo.org> | 2011-12-29 10:01:28 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-12-29 10:01:28 -0600 |
commit | 29da0c8bf0b377dcdc7ca489bd783d804f444437 (patch) | |
tree | 7770eac60f3e7ad4fcf2dbb4bab1b45337b42ea1 | |
parent | 49e99a739361b977b0841c602f10fc9895285197 (diff) |
cgroups: default the size of the tmpfs to 10 mb
-rw-r--r-- | init.d/sysfs.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 8809bda2..ac6934a4 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -65,8 +65,8 @@ mount_misc() if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then if grep -qs cgroup /proc/filesystems; then ebegin "Mounting cgroup filesystem" - mount -n -t tmpfs -o nodev,noexec,nosuid,mode=755 \ - cgroup_root /sys/fs/cgroup + local opts="nodev,noexec,nosuid,mode=755,size=${rc_cgroupsize:-10m}" + mount -n -t tmpfs -o ${opts} cgroup_root /sys/fs/cgroup eend $? fi fi |