From 56112a6f1f176696e5f39a86fe4b52017ccdd04c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 30 Jun 2014 20:30:39 -0500 Subject: 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 for pointing this out. --- init.d/sysfs.in | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3