From 58e04035ed1e2c8ab319b1f4d47ea834b62eced9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 27 Jan 2012 11:14:50 -0600 Subject: 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 X-Gentoo-Bug: 400967 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400967 --- init.d/sysfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 8ba988a..e692198 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -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 -- cgit v1.2.3