Debian Codegraph @

upstream/debian-unstable/man5/binfmt.d.5

raw
1 '\" t
2 .TH "BINFMT\&.D" "5" "" "systemd 261~rc3" "binfmt.d"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 binfmt.d \- Configure additional binary formats for executables at boot
24 .SH "SYNOPSIS"
25 .PP
26 .RS 4
27 /etc/binfmt\&.d/*\&.conf
28 .RE
29 .RS 4
30 /run/binfmt\&.d/*\&.conf
31 .RE
32 .RS 4
33 /usr/local/lib/binfmt\&.d/*\&.conf
34 .RE
35 .RS 4
36 /usr/lib/binfmt\&.d/*\&.conf
37 .RE
38 .SH "DESCRIPTION"
39 .PP
40 At boot,
41 \fBsystemd-binfmt.service\fR(8)
42 reads configuration files from the above directories to register in the kernel additional binary formats for executables\&.
43 .SH "CONFIGURATION FORMAT"
44 .PP
45 Each file contains a list of binfmt_misc kernel binary format rules\&. Consult the kernel\*(Aqs
46 \m[blue]\fBKernel Support for miscellaneous Binary Formats (binfmt_misc)\fR\m[]\&\s-2\u[1]\d\s+2
47 documentation file for more information on registration of additional binary formats and how to write rules\&.
48 .PP
49 Empty lines and lines beginning with
50 ";"
51 and
52 "#"
53 are ignored\&. Note that this means you may not use those symbols as the delimiter in binary format rules\&.
54 .SH "CONFIGURATION DIRECTORIES AND PRECEDENCE"
55 .PP
56 Configuration files are read from directories in
57 /etc/,
58 /run/,
59 /usr/local/lib/, and
60 /usr/lib/, in order of precedence, as listed in the SYNOPSIS section above\&. Files must have the
61 "\&.conf"
62 extension\&. Files in
63 /etc/
64 override files with the same name in
65 /run/,
66 /usr/local/lib/, and
67 /usr/lib/\&. Files in
68 /run/
69 override files with the same name under
70 /usr/\&.
71 .PP
72 All configuration files are sorted by their filename in lexicographic order, regardless of which of the directories they reside in\&. If multiple files specify the same option, the entry in the file with the lexicographically latest name will take precedence\&. Thus, the configuration in a certain file may either be replaced completely (by placing a file with the same name in a directory with higher priority), or individual settings might be changed (by specifying additional settings in a file with a different name that is ordered later)\&.
73 .PP
74 Packages should install their configuration files in
75 /usr/lib/
76 (distribution packages) or
77 /usr/local/lib/
78 (local installs)
79 \&\s-2\u[2]\d\s+2\&. Files in
80 /etc/
81 are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages\&.
82 .PP
83 It is recommended to prefix all filenames with a two\-digit number and a dash to simplify the ordering\&. It is recommended to use the range 10\-40 for configuration files in
84 /usr/
85 and the range 60\-90 for configuration files in
86 /etc/
87 and
88 /run/, to make sure that local and transient configuration files will always take priority over configuration files shipped by the OS vendor\&.
89 .PP
90 If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to
91 /dev/null
92 in the configuration directory in
93 /etc/, with the same filename as the vendor configuration file\&. If the vendor configuration file is included in the initrd image, the image has to be regenerated\&.
94 .SH "EXAMPLE"
95 .PP
96 \fBExample\ \&1.\ \&/etc/binfmt\&.d/wine\&.conf example:\fR
97 .sp
98 .if n \{\
99 .RS 4
100 .\}
101 .nf
102 # Start WINE on Windows executables
103 :DOSWin:M::MZ::/usr/bin/wine:
104 .fi
105 .if n \{\
106 .RE
107 .\}
108 .SH "SEE ALSO"
109 .PP
110 \fBsystemd\fR(1), \fBsystemd-binfmt.service\fR(8), \fBsystemd-delta\fR(1), \fBwine\fR(8)
111 .SH "NOTES"
112 .IP " 1." 4
113 Kernel Support for miscellaneous Binary Formats (binfmt_misc)
114 .RS 4
115 \%https://docs.kernel.org/admin-guide/binfmt-misc.html
116 .RE
117 .IP " 2." 4
118 💣💥🧨💥💥💣 Please note that those configuration files must be available at all times. If
119 /usr/local/
120 is a separate partition, it may not be available during early boot, and must not be used for configuration.
121