Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Thu, 29 Dec 2011 16:02:15
Message-Id: 29da0c8bf0b377dcdc7ca489bd783d804f444437.WilliamH@gentoo
1 commit: 29da0c8bf0b377dcdc7ca489bd783d804f444437
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 16:01:28 2011 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 16:01:28 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=29da0c8b
7
8 cgroups: default the size of the tmpfs to 10 mb
9
10 ---
11 init.d/sysfs.in | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/init.d/sysfs.in b/init.d/sysfs.in
15 index 8809bda..ac6934a 100644
16 --- a/init.d/sysfs.in
17 +++ b/init.d/sysfs.in
18 @@ -65,8 +65,8 @@ mount_misc()
19 if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then
20 if grep -qs cgroup /proc/filesystems; then
21 ebegin "Mounting cgroup filesystem"
22 - mount -n -t tmpfs -o nodev,noexec,nosuid,mode=755 \
23 - cgroup_root /sys/fs/cgroup
24 + local opts="nodev,noexec,nosuid,mode=755,size=${rc_cgroupsize:-10m}"
25 + mount -n -t tmpfs -o ${opts} cgroup_root /sys/fs/cgroup
26 eend $?
27 fi
28 fi