From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rqpa3-0002CM-Mb for garchives@archives.gentoo.org; Fri, 27 Jan 2012 17:27:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BD1EE0773; Fri, 27 Jan 2012 17:27:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 53160E0773 for ; Fri, 27 Jan 2012 17:27:10 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C973B1B4075 for ; Fri, 27 Jan 2012 17:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 4551480044 for ; Fri, 27 Jan 2012 17:27:09 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <58e04035ed1e2c8ab319b1f4d47ea834b62eced9.WilliamH@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/sysfs.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 58e04035ed1e2c8ab319b1f4d47ea834b62eced9 Date: Fri, 27 Jan 2012 17:27:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: e4d417b6-7a26-4ce8-b5a5-9c660163b08b X-Archives-Hash: 6076c0692b540ac578ad5861488c2e7f commit: 58e04035ed1e2c8ab319b1f4d47ea834b62eced9 Author: William Hubbs gentoo org> AuthorDate: Fri Jan 27 17:14:50 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jan 27 17:19:41 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D58e04035 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 gmail.com> X-Gentoo-Bug: 400967 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=3D400967 --- 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 8ba988a..e692198 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -79,14 +79,14 @@ mount_cgroups() =20 local agent=3D"@LIBEXECDIR@/sh/cgroup-release-agent.sh" mkdir /sys/fs/cgroup/openrc - mount -t cgroup \ + mount -n -t cgroup \ -o none,nodev,noexec,nosuid,name=3Dopenrc,release_agent=3D"$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