1BINFMT.D(5) binfmt.d BINFMT.D(5)
2
3
4
6 binfmt.d - Configure additional binary formats for executables at boot
7
9 /etc/binfmt.d/*.conf
10
11 /run/binfmt.d/*.conf
12
13 /usr/lib/binfmt.d/*.conf
14
16 At boot, systemd-binfmt.service(8) reads configuration files from the
17 above directories to register in the kernel additional binary formats
18 for executables.
19
21 Each file contains a list of binfmt_misc kernel binary format rules.
22 Consult binfmt_misc.rst[1] for more information on registration of
23 additional binary formats and how to write rules.
24
25 Empty lines and lines beginning with ; and # are ignored. Note that
26 this means you may not use ; and # as delimiter in binary format rules.
27
29 Configuration files are read from directories in /etc/, /run/, and
30 /usr/lib/, in order of precedence. Each configuration file in these
31 configuration directories shall be named in the style of filename.conf.
32 Files in /etc/ override files with the same name in /run/ and
33 /usr/lib/. Files in /run/ override files with the same name in
34 /usr/lib/.
35
36 Packages should install their configuration files in /usr/lib/. Files
37 in /etc/ are reserved for the local administrator, who may use this
38 logic to override the configuration files installed by vendor packages.
39 All configuration files are sorted by their filename in lexicographic
40 order, regardless of which of the directories they reside in. If
41 multiple files specify the same option, the entry in the file with the
42 lexicographically latest name will take precedence. It is recommended
43 to prefix all filenames with a two-digit number and a dash, to simplify
44 the ordering of the files.
45
46 If the administrator wants to disable a configuration file supplied by
47 the vendor, the recommended way is to place a symlink to /dev/null in
48 the configuration directory in /etc/, with the same filename as the
49 vendor configuration file.
50
52 Example 1. /etc/binfmt.d/wine.conf example:
53
54 # Start WINE on Windows executables
55 :DOSWin:M::MZ::/usr/bin/wine:
56
58 systemd(1), systemd-binfmt.service(8), systemd-delta(1), wine(8)
59
61 1. binfmt_misc.rst
62 https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst
63
64
65
66systemd 219 BINFMT.D(5)