cgroups: default the size of the tmpfs to 10 mb

This commit is contained in:
William Hubbs 2011-12-29 10:01:28 -06:00
parent 49e99a7393
commit 29da0c8bf0

View File

@ -65,8 +65,8 @@ mount_misc()
if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then
if grep -qs cgroup /proc/filesystems; then if grep -qs cgroup /proc/filesystems; then
ebegin "Mounting cgroup filesystem" ebegin "Mounting cgroup filesystem"
mount -n -t tmpfs -o nodev,noexec,nosuid,mode=755 \ local opts="nodev,noexec,nosuid,mode=755,size=${rc_cgroupsize:-10m}"
cgroup_root /sys/fs/cgroup mount -n -t tmpfs -o ${opts} cgroup_root /sys/fs/cgroup
eend $? eend $?
fi fi
fi fi