Re: binfmt_misc on 2.4.3-ac14

Wayne.Brown@altec.com
Thu, 26 Apr 2001 16:40:41 -0500


--0__=0u1j7JX5n1ThcKw02kcgtUxvymZJdd9aHtITb6Q5qyUqDZQ4oYTVwk26
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

Marek P
--0__=0u1j7JX5n1ThcKw02kcgtUxvymZJdd9aHtITb6Q5qyUqDZQ4oYTVwk26
Content-type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

=EAtlicki <marpet@buy.pl> wrote:

>The directory /proc/sys/fs/binfmt_misc/ exists, but nothing in it.

Try this:

mount -t binfmt_misc none /proc/sys/fs/binfmt_misc

In the recent -ac versions, binfmt_misc must be mounted separately. I =
have the
following in my /etc/rc.d/rc.local so that it will work with both Linus=
' and
Alan's kernels (the third variation was for an older -ac kernel that di=
dn't
create the binfmt_misc directory either; it's really not needed anymore=
but I
left it in just in case):

#
# Register entries in binfmt_misc
#
if [ -f /proc/sys/fs/binfmt_misc/register ] ; then
echo ':DOSWin:M::MZ::/usr/local/bin/wine:' >
/proc/sys/fs/binfmt_misc/register
elif [ -d /proc/sys/fs/binfmt_misc ] ; then
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
echo ':DOSWin:M::MZ::/usr/local/bin/wine:' >
/proc/sys/fs/binfmt_misc/register
else
mount -t binfmt_misc none /etc/binfmt_misc
echo ':DOSWin:M::MZ::/usr/local/bin/wine:' > /etc/binfmt_misc/r=
egister
fi

Wayne
=

--0__=0u1j7JX5n1ThcKw02kcgtUxvymZJdd9aHtITb6Q5qyUqDZQ4oYTVwk26--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/