]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/binfmt.d.xml
final v236 update (#7649)
[thirdparty/systemd.git] / man / binfmt.d.xml
CommitLineData
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
151b190e
LP
7 This file is part of systemd.
8
c91faef3 9 Copyright 2011 Lennart Poettering
151b190e
LP
10
11 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
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
151b190e
LP
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
5430f7f2 19 Lesser General Public License for more details.
151b190e 20
5430f7f2 21 You should have received a copy of the GNU Lesser General Public License
151b190e
LP
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
d3fae78f 24<refentry id="binfmt.d" conditional='ENABLE_BINFMT'
798d3a52
ZJS
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/binfmt_misc.txt">binfmt_misc.txt</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
151b190e 89:DOSWin:M::MZ::/usr/bin/wine:</programlisting>
798d3a52
ZJS
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>
151b190e
LP
102
103</refentry>