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