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 1RJ5a6-0003T0-Rt for garchives@archives.gentoo.org; Wed, 26 Oct 2011 15:39:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A926921C025; Wed, 26 Oct 2011 15:39:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 670BF21C025 for ; Wed, 26 Oct 2011 15:39:47 +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 E03891B4018 for ; Wed, 26 Oct 2011 15:39:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 0A6ED80042 for ; Wed, 26 Oct 2011 15:39:46 +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: 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: b1da4dcb9913d6d28fa39c60dcf9c867c39486ef Date: Wed, 26 Oct 2011 15:39:46 +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: X-Archives-Hash: a8fbc733beca4eda9aad53a7a6c0f9cd commit: b1da4dcb9913d6d28fa39c60dcf9c867c39486ef Author: Alexey Shvetsov gentoo org> AuthorDate: Tue Oct 25 21:05:00 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Oct 26 15:35:01 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Db1da4dcb Add support for automounting configfs and cgroupfs Signed-off-by: Alexey Shvetsov gentoo.org> --- init.d/sysfs.in | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index ba25090..257f314 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -50,6 +50,26 @@ mount_misc() eend $? fi fi + + # Setup Kernel Support for configfs + if [ -d /sys/kernel/config ] && ! mountinfo -q /sys/kernel/config; then + if grep -qs configfs /proc/filesystems; then + ebegin "Mounting config filesystem" + mount -n -t configfs -o nodev,noexec,nosuid \ + configfs /sys/kernel/config + eend $? + fi + fi + + # Setup Kernel Support for cgroup + if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then + if grep -qs cgroup /proc/filesystems; then + ebegin "Mounting cgroup filesystem" + mount -n -t cgroup -o nodev,noexec,nosuid \ + cgroup /sys/fs/cgroup + eend $? + fi + fi } =20 start()