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