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 1R5Nef-0004z1-4v for garchives@archives.gentoo.org; Sun, 18 Sep 2011 20:07:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1476921C080; Sun, 18 Sep 2011 20:07:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DD0C521C0D6 for ; Sun, 18 Sep 2011 20:07:49 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D5361B4031 for ; Sun, 18 Sep 2011 20:07:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 570118004F for ; Sun, 18 Sep 2011 20:07:48 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/procfs.in X-VCS-Directories: init.d/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: fb485366e68d2b4bfb868693b07a57969a1faa90 Date: Sun, 18 Sep 2011 20:07:48 +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: b0950cb0adb5c479227aea80a6d025e3 commit: fb485366e68d2b4bfb868693b07a57969a1faa90 Author: Mike Frysinger gentoo org> AuthorDate: Sun Sep 18 19:50:12 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Sep 18 20:01:28 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Dfb485366 procfs: simplify the binfmt_misc mount check Replace the `mountinfo` exec with a file test of the register file which we rely on later anyways. Signed-off-by: Mike Frysinger gentoo.org> --- init.d/procfs.in | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/init.d/procfs.in b/init.d/procfs.in index 645311f..8167ff9 100644 --- a/init.d/procfs.in +++ b/init.d/procfs.in @@ -38,8 +38,7 @@ start() fi =20 # Setup Kernel Support for miscellaneous Binary Formats - if [ -d /proc/sys/fs/binfmt_misc ] \ - && ! mountinfo -q /proc/sys/fs/binfmt_misc; then + if [ -d /proc/sys/fs/binfmt_misc -a ! -e /proc/sys/fs/binfmt_misc/regis= ter ]; then if grep -qs binfmt_misc /proc/filesystems; then ebegin "Mounting misc binary format filesystem" mount -t binfmt_misc -o nodev,noexec,nosuid \