cgroups: default the size of the tmpfs to 10 mb
This commit is contained in:
parent
49e99a7393
commit
29da0c8bf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user