]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/binfmt.d.xml
Merge pull request #11971 from keszybz/kernel-install-directory
[thirdparty/systemd.git] / man / binfmt.d.xml
1 <?xml version="1.0"?>
2 <!--*-nxml-*-->
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 <!--
5 SPDX-License-Identifier: LGPL-2.1+
6 -->
7 <refentry id="binfmt.d" conditional='ENABLE_BINFMT'
8 xmlns:xi="http://www.w3.org/2001/XInclude">
9
10 <refentryinfo>
11 <title>binfmt.d</title>
12 <productname>systemd</productname>
13 </refentryinfo>
14
15 <refmeta>
16 <refentrytitle>binfmt.d</refentrytitle>
17 <manvolnum>5</manvolnum>
18 </refmeta>
19
20 <refnamediv>
21 <refname>binfmt.d</refname>
22 <refpurpose>Configure additional binary formats for
23 executables at boot</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
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>
30 </refsynopsisdiv>
31
32 <refsect1>
33 <title>Description</title>
34
35 <para>At boot,
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>
39 </refsect1>
40
41 <refsect1>
42 <title>Configuration Format</title>
43
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>
47
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>
51 </refsect1>
52
53 <xi:include href="standard-conf.xml" xpointer="confd" />
54
55 <refsect1>
56 <title>Example</title>
57 <example>
58 <title>/etc/binfmt.d/wine.conf example:</title>
59
60 <programlisting># Start WINE on Windows executables
61 :DOSWin:M::MZ::/usr/bin/wine:</programlisting>
62 </example>
63 </refsect1>
64
65 <refsect1>
66 <title>See Also</title>
67 <para>
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>
72 </para>
73 </refsect1>
74
75 </refentry>