Cgroups: do not update mtab when mounting control groups
This is based on a patch submitted by the reporter; however, there was another mount command which needed -n as well so it was added to the patch. Reported-by: Ben Kohler <bkohler@gmail.com> X-Gentoo-Bug: 400967 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400967
This commit is contained in:
parent
ab9cf25197
commit
58e04035ed
@ -79,14 +79,14 @@ mount_cgroups()
|
||||
|
||||
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
|
||||
mkdir /sys/fs/cgroup/openrc
|
||||
mount -t cgroup \
|
||||
mount -n -t cgroup \
|
||||
-o none,nodev,noexec,nosuid,name=openrc,release_agent="$agent" \
|
||||
openrc /sys/fs/cgroup/openrc
|
||||
echo 1 > /sys/fs/cgroup/openrc/notify_on_release
|
||||
while read name hier groups enabled rest; do
|
||||
case "${enabled}" in
|
||||
1) mkdir /sys/fs/cgroup/${name}
|
||||
mount -t cgroup -o nodev,noexec,nosuid,${name} \
|
||||
mount -n -t cgroup -o nodev,noexec,nosuid,${name} \
|
||||
${name} /sys/fs/cgroup/${name}
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user