1 |
commit: 56112a6f1f176696e5f39a86fe4b52017ccdd04c |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jul 1 01:30:39 2014 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 1 01:30:39 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=56112a6f |
7 |
|
8 |
sysfs: Do not mount openrc cgroup if it is already mounted |
9 |
|
10 |
We were not checking to see if /sys/fs/cgroup/openrc was already mounted |
11 |
before we mounted it. This fixes that issue. |
12 |
Thanks to Robin Johnson <robbat2 <AT> gentoo.org> for pointing this out. |
13 |
|
14 |
--- |
15 |
init.d/sysfs.in | 1 + |
16 |
1 file changed, 1 insertion(+) |
17 |
|
18 |
diff --git a/init.d/sysfs.in b/init.d/sysfs.in |
19 |
index 1dba73f..9edd915 100644 |
20 |
--- a/init.d/sysfs.in |
21 |
+++ b/init.d/sysfs.in |
22 |
@@ -100,6 +100,7 @@ mount_misc() |
23 |
mount_cgroups() |
24 |
{ |
25 |
mountinfo -q /sys/fs/cgroup || return 0 |
26 |
+ mountinfo -q /sys/fs/cgroup/openrc || return 0 |
27 |
|
28 |
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh" |
29 |
mkdir /sys/fs/cgroup/openrc |