1 |
commit: cc8a9cdab9ff5bb17fc0d49fc130ed7cd9510464 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 27 17:14:50 2012 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 15:45:49 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=cc8a9cda |
7 |
|
8 |
Cgroups: do not update mtab when mounting control groups |
9 |
|
10 |
This is based on a patch submitted by the reporter; however, there was |
11 |
another mount command which needed -n as well so it was added to the |
12 |
patch. |
13 |
|
14 |
Reported-by: Ben Kohler <bkohler <AT> gmail.com> |
15 |
X-Gentoo-Bug: 400967 |
16 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400967 |
17 |
|
18 |
--- |
19 |
init.d/sysfs.in | 2 +- |
20 |
1 files changed, 1 insertions(+), 1 deletions(-) |
21 |
|
22 |
diff --git a/init.d/sysfs.in b/init.d/sysfs.in |
23 |
index 7021feb..68a71c6 100644 |
24 |
--- a/init.d/sysfs.in |
25 |
+++ b/init.d/sysfs.in |
26 |
@@ -82,7 +82,7 @@ mount_cgroups() |
27 |
while read name hier groups enabled rest; do |
28 |
case "${enabled}" in |
29 |
1) mkdir /sys/fs/cgroup/${name} |
30 |
- mount -t cgroup -o nodev,noexec,nosuid,${name} \ |
31 |
+ mount -n -t cgroup -o nodev,noexec,nosuid,${name} \ |
32 |
${name} /sys/fs/cgroup/${name} |
33 |
;; |
34 |
esac |