3 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 SPDX-License-Identifier: LGPL-2.1+
7 <refentry id=
"binfmt.d" conditional='ENABLE_BINFMT'
8 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
11 <title>binfmt.d
</title>
12 <productname>systemd
</productname>
16 <refentrytitle>binfmt.d
</refentrytitle>
17 <manvolnum>5</manvolnum>
21 <refname>binfmt.d
</refname>
22 <refpurpose>Configure additional binary formats for
23 executables at boot
</refpurpose>
27 <para><filename>/etc/binfmt.d/*.conf
</filename></para>
28 <para><filename>/run/binfmt.d/*.conf
</filename></para>
29 <para><filename>/usr/lib/binfmt.d/*.conf
</filename></para>
33 <title>Description
</title>
36 <citerefentry><refentrytitle>systemd-binfmt.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
37 reads configuration files from the above directories to register
38 in the kernel additional binary formats for executables.
</para>
42 <title>Configuration Format
</title>
44 <para>Each file contains a list of binfmt_misc kernel binary format rules. Consult the kernel's
<ulink
45 url=
"https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html">binfmt-misc.rst
</ulink> documentation
46 file for more information on registration of additional binary formats and how to write rules.
</para>
48 <para>Empty lines and lines beginning with ; and # are ignored.
49 Note that this means you may not use ; and # as delimiter in
50 binary format rules.
</para>
53 <xi:include href=
"standard-conf.xml" xpointer=
"confd" />
56 <title>Example
</title>
58 <title>/etc/binfmt.d/wine.conf example:
</title>
60 <programlisting># Start WINE on Windows executables
61 :DOSWin:M::MZ::/usr/bin/wine:
</programlisting>
66 <title>See Also
</title>
68 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
69 <citerefentry><refentrytitle>systemd-binfmt.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
70 <citerefentry><refentrytitle>systemd-delta
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
71 <citerefentry project='die-net'
><refentrytitle>wine
</refentrytitle><manvolnum>8</manvolnum></citerefentry>