1BINFMT.D(5)                        binfmt.d                        BINFMT.D(5)
2
3
4

NAME

6       binfmt.d - Configure additional binary formats for executables at boot
7

SYNOPSIS

9       /etc/binfmt.d/*.conf
10
11       /run/binfmt.d/*.conf
12
13       /usr/lib/binfmt.d/*.conf
14

DESCRIPTION

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

CONFIGURATION FORMAT

21       Each file contains a list of binfmt_misc kernel binary format rules.
22       Consult the kernel's binfmt-misc.rst[1] documentation file for more
23       information on registration of additional binary formats and how to
24       write rules.
25
26       Empty lines and lines beginning with ; and # are ignored. Note that
27       this means you may not use ; and # as delimiter in binary format rules.
28

CONFIGURATION DIRECTORIES AND PRECEDENCE

30       Configuration files are read from directories in /etc/, /run/,
31       /usr/local/lib/, and /usr/lib/, in order of precedence. Each
32       configuration file in these configuration directories shall be named in
33       the style of filename.conf. Files in /etc/ override files with the same
34       name in /run/, /usr/local/lib/, and /usr/lib/. Files in /run/ override
35       files with the same name under /usr/.
36
37       Packages should install their configuration files in /usr/lib/
38       (distribution packages) or /usr/local/lib/ (local installs). Files in
39       /etc/ are reserved for the local administrator, who may use this logic
40       to override the configuration files installed by vendor packages. All
41       configuration files are sorted by their filename in lexicographic
42       order, regardless of which of the directories they reside in. If
43       multiple files specify the same option, the entry in the file with the
44       lexicographically latest name will take precedence. It is recommended
45       to prefix all filenames with a two-digit number and a dash, to simplify
46       the ordering of the files.
47
48       If the administrator wants to disable a configuration file supplied by
49       the vendor, the recommended way is to place a symlink to /dev/null in
50       the configuration directory in /etc/, with the same filename as the
51       vendor configuration file. If the vendor configuration file is included
52       in the initrd image, the image has to be regenerated.
53

EXAMPLE

55       Example 1. /etc/binfmt.d/wine.conf example:
56
57           # Start WINE on Windows executables
58           :DOSWin:M::MZ::/usr/bin/wine:
59

SEE ALSO

61       systemd(1), systemd-binfmt.service(8), systemd-delta(1), wine(8)
62

NOTES

64        1. binfmt-misc.rst
65           https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
66
67
68
69systemd 243                                                        BINFMT.D(5)
Impressum