diff options
author | William Hubbs <williamh@gentoo.org> | 2012-01-27 11:14:50 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-01-27 11:19:41 -0600 |
commit | 58e04035ed1e2c8ab319b1f4d47ea834b62eced9 (patch) | |
tree | c7c45819cfebb62ce27d1833ccd82db0fc72a16a /init.d | |
parent | ab9cf25197bccaff72d636f511b876aa2c379fdb (diff) |
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
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/sysfs.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 8ba988a0..e6921985 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 |