From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-707665-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 2F52A13877A
	for <garchives@archives.gentoo.org>; Tue,  1 Jul 2014 01:33:10 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3A292E0AD8;
	Tue,  1 Jul 2014 01:33:08 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CBEE4E0AD8
	for <gentoo-commits@lists.gentoo.org>; Tue,  1 Jul 2014 01:33:07 +0000 (UTC)
Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D35ED33BE2D
	for <gentoo-commits@lists.gentoo.org>; Tue,  1 Jul 2014 01:33:06 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by spoonbill.gentoo.org (Postfix) with ESMTP id 43E15192E9
	for <gentoo-commits@lists.gentoo.org>; Tue,  1 Jul 2014 01:33:05 +0000 (UTC)
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org>
Message-ID: <1404178239.56112a6f1f176696e5f39a86fe4b52017ccdd04c.williamh@OpenRC>
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: 56112a6f1f176696e5f39a86fe4b52017ccdd04c
X-VCS-Branch: master
Date: Tue,  1 Jul 2014 01:33:05 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 33e26985-0da0-4ec8-81c7-f4bb36f6629e
X-Archives-Hash: 16c2c57ef3e098ef29a77fad32e316d2

commit:     56112a6f1f176696e5f39a86fe4b52017ccdd04c
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Jul  1 01:30:39 2014 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jul  1 01:30:39 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=56112a6f

sysfs: Do not mount openrc cgroup if it is already mounted

We were not checking to see if /sys/fs/cgroup/openrc was already mounted
before we mounted it. This fixes that issue.
Thanks to Robin Johnson <robbat2 <AT> gentoo.org> for pointing this out.

---
 init.d/sysfs.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 1dba73f..9edd915 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -100,6 +100,7 @@ mount_misc()
 mount_cgroups()
 {
 		mountinfo -q /sys/fs/cgroup || return 0
+		mountinfo -q /sys/fs/cgroup/openrc || return 0
 
 	local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
 	mkdir /sys/fs/cgroup/openrc