aboutsummaryrefslogtreecommitdiff
path: root/init.d/sysfs.in
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-12-29 10:01:28 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-12-29 10:01:28 -0600
commit29da0c8bf0b377dcdc7ca489bd783d804f444437 (patch)
tree7770eac60f3e7ad4fcf2dbb4bab1b45337b42ea1 /init.d/sysfs.in
parent49e99a739361b977b0841c602f10fc9895285197 (diff)
cgroups: default the size of the tmpfs to 10 mb
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r--init.d/sysfs.in4
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