aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-09-18 15:50:12 -0400
committerMike Frysinger <vapier@gentoo.org>2011-09-18 16:01:28 -0400
commitfb485366e68d2b4bfb868693b07a57969a1faa90 (patch)
treef4704f675db99c160713a59e5c3dbb8220e961d2
parentf52dca69849b0aef2a4644f106c152c0e456f989 (diff)
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 <vapier@gentoo.org>
-rw-r--r--init.d/procfs.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/init.d/procfs.in b/init.d/procfs.in
index 645311ff..8167ff95 100644
--- a/init.d/procfs.in
+++ b/init.d/procfs.in
@@ -38,8 +38,7 @@ start()
fi
# 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/register ]; then
if grep -qs binfmt_misc /proc/filesystems; then
ebegin "Mounting misc binary format filesystem"
mount -t binfmt_misc -o nodev,noexec,nosuid \