From fb485366e68d2b4bfb868693b07a57969a1faa90 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 18 Sep 2011 15:50:12 -0400 Subject: 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 --- init.d/procfs.in | 3 +-- 1 file changed, 1 insertion(+), 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 # 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 \ -- cgit v1.2.3