1<?xml version="1.0"?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6<refentry id="binfmt.d" conditional='ENABLE_BINFMT'
7    xmlns:xi="http://www.w3.org/2001/XInclude">
8
9  <refentryinfo>
10    <title>binfmt.d</title>
11    <productname>systemd</productname>
12  </refentryinfo>
13
14  <refmeta>
15    <refentrytitle>binfmt.d</refentrytitle>
16    <manvolnum>5</manvolnum>
17  </refmeta>
18
19  <refnamediv>
20    <refname>binfmt.d</refname>
21    <refpurpose>Configure additional binary formats for
22    executables at boot</refpurpose>
23  </refnamediv>
24
25  <refsynopsisdiv>
26    <para><filename>/etc/binfmt.d/*.conf</filename></para>
27    <para><filename>/run/binfmt.d/*.conf</filename></para>
28    <para><filename>/usr/lib/binfmt.d/*.conf</filename></para>
29  </refsynopsisdiv>
30
31  <refsect1>
32    <title>Description</title>
33
34    <para>At boot,
35    <citerefentry><refentrytitle>systemd-binfmt.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
36    reads configuration files from the above directories to register
37    in the kernel additional binary formats for executables.</para>
38  </refsect1>
39
40  <refsect1>
41    <title>Configuration Format</title>
42
43    <para>Each file contains a list of binfmt_misc kernel binary format rules. Consult the kernel's <ulink
44    url="https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html">Kernel Support for
45    miscellaneous Binary Formats (binfmt_misc)</ulink> documentation file for more information on
46    registration of additional binary formats and how to write rules.</para>
47
48    <para>Empty lines and lines beginning with <literal>;</literal> and <literal>#</literal> are ignored.
49    Note that this means you may not use those symbols as the delimiter in binary format rules.</para>
50  </refsect1>
51
52  <xi:include href="standard-conf.xml" xpointer="confd" />
53
54  <refsect1>
55    <title>Example</title>
56    <example>
57      <title>/etc/binfmt.d/wine.conf example:</title>
58
59      <programlisting># Start WINE on Windows executables
60:DOSWin:M::MZ::/usr/bin/wine:</programlisting>
61    </example>
62  </refsect1>
63
64  <refsect1>
65    <title>See Also</title>
66    <para>
67      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
68      <citerefentry><refentrytitle>systemd-binfmt.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
69      <citerefentry><refentrytitle>systemd-delta</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
70      <citerefentry project='die-net'><refentrytitle>wine</refentrytitle><manvolnum>8</manvolnum></citerefentry>
71    </para>
72  </refsect1>
73
74</refentry>
75