diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2014-06-30 20:30:39 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2014-06-30 20:30:39 -0500 |
commit | 56112a6f1f176696e5f39a86fe4b52017ccdd04c (patch) | |
tree | 4f81e0042433f6e4fc50633c988346c9436add68 /init.d/sysfs.in | |
parent | 09d81e86f210acf5270ea4bd0fa7319a49f88131 (diff) |
sysfs: Do not mount openrc cgroup if it is already mounted
We were not checking to see if /sys/fs/cgroup/openrc was already mounted
before we mounted it. This fixes that issue.
Thanks to Robin Johnson <robbat2@gentoo.org> for pointing this out.
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r-- | init.d/sysfs.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 1dba73f9..9edd9155 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -100,6 +100,7 @@ mount_misc() mount_cgroups() { mountinfo -q /sys/fs/cgroup || return 0 + mountinfo -q /sys/fs/cgroup/openrc || return 0 local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh" mkdir /sys/fs/cgroup/openrc |