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.
This commit is contained in:
parent
09d81e86f2
commit
56112a6f1f
@ -100,6 +100,7 @@ mount_misc()
|
|||||||
mount_cgroups()
|
mount_cgroups()
|
||||||
{
|
{
|
||||||
mountinfo -q /sys/fs/cgroup || return 0
|
mountinfo -q /sys/fs/cgroup || return 0
|
||||||
|
mountinfo -q /sys/fs/cgroup/openrc || return 0
|
||||||
|
|
||||||
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
|
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
|
||||||
mkdir /sys/fs/cgroup/openrc
|
mkdir /sys/fs/cgroup/openrc
|
||||||
|
Loading…
Reference in New Issue
Block a user