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