Documentation/admin-guide/{binfmt-misc,java,mono}: Consolidate into one directory
Subsystems (2)
PATCH 1/2 Documentation/admin-guide/{binfmt-misc,java,mono}: Consolidate into one directory
Binfmt stuff has potential. Sorting them together makes sense.
---
.../admin-guide/{ => binfmt-misc}/binfmt-misc.rst | 0
Documentation/admin-guide/binfmt-misc/index.rst | 13 +++++++++++++
.../admin-guide/{ => binfmt-misc}/java.rst | 0
.../admin-guide/{ => binfmt-misc}/mono.rst | 0
Documentation/admin-guide/index.rst | 4 +---
5 files changed, 14 insertions(+), 3 deletions(-)
rename Documentation/admin-guide/{ => binfmt-misc}/binfmt-misc.rst (100%)
create mode 100644 Documentation/admin-guide/binfmt-misc/index.rst
rename Documentation/admin-guide/{ => binfmt-misc}/java.rst (100%)
rename Documentation/admin-guide/{ => binfmt-misc}/mono.rst (100%)Documentation/admin-guide/binfmt-misc/binfmt-misc.rst renamed from Documentation/admin-guide/binfmt-misc.rst +0 -0
Documentation/admin-guide/binfmt-misc/index.rst new file +13 -0
@@ -0,0 +1,13 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============================================================= +Kernel Support for miscellaneous Binary Formats (binfmt_misc) +============================================================= + +.. toctree:: + :maxdepth: 2 + + binfmt-misc + java + mono +
Documentation/admin-guide/binfmt-misc/java.rst renamed from Documentation/admin-guide/java.rst +0 -0
Documentation/admin-guide/binfmt-misc/mono.rst renamed from Documentation/admin-guide/mono.rst +0 -0
Documentation/admin-guide/index.rst +1 -3
@@ -108,9 +108,7 @@ documents are ... old ... .. toctree:: :maxdepth: 1 - binfmt-misc - java - mono + binfmt-misc/index Block-layer and filesystem administration
Signature · 1 line
2.49.0.windows.1
PATCH 2/2 Documentation/admin-guide/binfmt-misc/mono: add Caveats
This will clash with wine. Spell it out.
--- Documentation/admin-guide/binfmt-misc/mono.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Documentation/admin-guide/binfmt-misc/mono.rst +13 -0
@@ -68,3 +68,16 @@ other program after you have done the following: If this fails with a permission denied error, check that the ``.exe`` file has execute permissions. + +Caveats +^^^^^^^ + +You may have noticed that our registration line is virtually the same +as the one for wine, with ``MZ`` as the magic number and no offset. +This means that if you have both wine and mono installed, only one +of them will work, depending on which one was registered last. + +To solve this problem, you can use a wrapper script for either wine +or mono that checks the file type and invokes the correct interpreter. +For example, ``file`` is able to distinguish between .NET CLR binaries +and regular Windows binaries.
Signature · 1 line
2.49.0.windows.1