]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/binfmt.d.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[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 This file is part of systemd.
8
9 Copyright 2011 Lennart Poettering
10
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
15
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 -->
24 <refentry id="binfmt.d" conditional='ENABLE_BINFMT'
25 xmlns:xi="http://www.w3.org/2001/XInclude">
26
27 <refentryinfo>
28 <title>binfmt.d</title>
29 <productname>systemd</productname>
30
31 <authorgroup>
32 <author>
33 <contrib>Developer</contrib>
34 <firstname>Lennart</firstname>
35 <surname>Poettering</surname>
36 <email>lennart@poettering.net</email>
37 </author>
38 </authorgroup>
39 </refentryinfo>
40
41 <refmeta>
42 <refentrytitle>binfmt.d</refentrytitle>
43 <manvolnum>5</manvolnum>
44 </refmeta>
45
46 <refnamediv>
47 <refname>binfmt.d</refname>
48 <refpurpose>Configure additional binary formats for
49 executables at boot</refpurpose>
50 </refnamediv>
51
52 <refsynopsisdiv>
53 <para><filename>/etc/binfmt.d/*.conf</filename></para>
54 <para><filename>/run/binfmt.d/*.conf</filename></para>
55 <para><filename>/usr/lib/binfmt.d/*.conf</filename></para>
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60
61 <para>At boot,
62 <citerefentry><refentrytitle>systemd-binfmt.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
63 reads configuration files from the above directories to register
64 in the kernel additional binary formats for executables.</para>
65 </refsect1>
66
67 <refsect1>
68 <title>Configuration Format</title>
69
70 <para>Each file contains a list of binfmt_misc kernel binary
71 format rules. Consult <ulink
72 url="https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst">binfmt-misc.rst</ulink>
73 for more information on registration of additional binary formats
74 and how to write rules.</para>
75
76 <para>Empty lines and lines beginning with ; and # are ignored.
77 Note that this means you may not use ; and # as delimiter in
78 binary format rules.</para>
79 </refsect1>
80
81 <xi:include href="standard-conf.xml" xpointer="confd" />
82
83 <refsect1>
84 <title>Example</title>
85 <example>
86 <title>/etc/binfmt.d/wine.conf example:</title>
87
88 <programlisting># Start WINE on Windows executables
89 :DOSWin:M::MZ::/usr/bin/wine:</programlisting>
90 </example>
91 </refsect1>
92
93 <refsect1>
94 <title>See Also</title>
95 <para>
96 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>systemd-binfmt.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>systemd-delta</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
99 <citerefentry project='die-net'><refentrytitle>wine</refentrytitle><manvolnum>8</manvolnum></citerefentry>
100 </para>
101 </refsect1>
102
103 </refentry>