File: kernel-img.conf.5

package info (click to toggle)
kernel-package 12.036%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,848 kB
  • ctags: 657
  • sloc: perl: 2,887; sh: 840; makefile: 219
file content (258 lines) | stat: -rw-r--r-- 10,505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 2000 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" $Id: kernel-img.conf.5,v 1.25 2003/09/28 01:16:52 srivasta Exp $
.\"
.TH KERNEL\-IMG.CONF 5 "Aug 20 2009" "Debian" "Debian GNU/Linux manual"
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
kernel\-img.conf \- site wide configuration file for kernel image packages
.SH SYNOPSIS
.I /etc/kernel\-img.conf
.SH "DESCRIPTION"
The file
.I /etc/kernel\-img.conf
is a simple file looked at by the kernel image post installation
process to allow local options for handling some aspects of the
installation, overriding the defaults built into the image itself.
.PP
The format of the file is a simple
.B VAR = VALUE
pair. Boolean values may be specified as
.I Yes, True, 1,
and
.I No, False, 0,
and are case insensitive.
This file is automatically created by the installation script in
certain circumstances.
.PP
At the moment, the user modifiable variables supported are:
.TP
.B postinst_hook
.BR DEPRECATED:
Set this variable to a script to be executed during installation. The
path can be a relative path if the script lives in a safe path -- that
is, if it lives in /bin, /sbin, /usr/bin, or /usr/sbin, or must be an
absolute path instead. Before calling this script, the env variable
.B STEM
shall be set to the value of the
.I \-\-stem
argument (or the default value, linux), and
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package.  This script shall be called with two arguments, the first
being the
.I version
of the kernel image, and the second argument being the
.I location
of the kernel image itself. Errors in the script shall cause the
postinst to fail. Since debconf is in use before the script is called,
this script should issue no diagnostic messages to stdout -- while the
postinst does call
.B db_stop
, debconf does not restore stdout, so messages to stdout disappear.
An example script for grub users is present in
/usr/share/doc/kernel\-package/ directory.
This script is run
.I after
the scripts in /etc/kernel/postinst.d directory.
.TP
.B postrm_hook
.BR DEPRECATED:
Set this variable to a script to be executed in the postrm (that is,
after the image has been removed) after all the remove actions have
been performed. The path can be a relative path if the script lives in
a safe path -- that is, if it lives in /bin, /sbin, /usr/bin, or
/usr/sbin, or must be an absolute path instead. The environment
variable 
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package. This script shall be called with two arguments, the first
being the
.I version
of the kernel image, and the second argument being the
.I location
of the kernel image itself. Errors in the script shall produce a
warning message, but shall be otherwise ignored. Since debconf is in
use before the script is called, this script should issue no
diagnostic messages to stdout --  while the postinst does call
.B db_stop
, debconf does not restore stdout, so messages to stdout disappear.
This script is run
.I after
the scripts in /etc/kernel/postrm.d directory.
.TP
.B preinst_hook
.BR DEPRECATED:
Set this variable to a script to be executed before the package is
unpacked, and can be used to put in additional checks. The path can be
a relative path if the script lives in a safe path -- that is, if it
lives in /bin, /sbin, /usr/bin, or /usr/sbin, or must be an absolute
path instead. The environment variable
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package. This script shall be called with two arguments, the first
being the
.I version
of the kernel image, and the second argument being the
.I location
of the kernel image itself.
This script is run
.I after
the scripts in /etc/kernel/preinst.d directory.
.TP
.B prerm_hook
.BR DEPRECATED:
Set this variable to a script to be executed before the package files
are removed (so any added files may be removed) . The path can be a
relative path if the script lives in a safe path -- that is, if it
lives in /bin, /sbin, /usr/bin, or /usr/sbin, or must be an absolute
path instead. The environment variable
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package. This script shall be called with two arguments, the
first being the
.I version
of the kernel image, and the second argument being the
.I location
of the kernel image itself. Errors in the script shall cause the prerm
to fail. Since debconf is in use before the script is called, this
script should issue no diagnostic messages to stdout -- while the
postinst does call
.B db_stop
, debconf does not restore stdout, so messages to stdout disappear.
This script is run
.I after
the scripts in /etc/kernel/prerm.d directory.
.TP
.B src_postinst_hook
.BR DEPRECATED:
Unlike the other hook variables, this is meant for a script run during
the post inst of a docs, headers or a source package. Using this hook
for the headers package is now being deprecated, at some point the
headers post install script shall only run the header_postinst_hook.
The path can be a relative path if the script lives in a safe path --
that is, if it lives in /bin, /sbin, /usr/bin, or /usr/sbin, or must
be an absolute path instead. The environment variable
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package.  This script shall be called with two arguments, the first
being the
.I name
of the package being installed (could be kernel source or headers),
and the second argument being the
.I version
of the package being installed. Errors in the script shall cause the
postinst to fail.
This script is run
.I after
the scripts in /etc/kernel/src_postinst.d directory.
.TP
.B header_postinst_hook
.BR DEPRECATED:
Unlike the other hook variables, this is meant for a script run during
the post inst of a headers package only. The path can be a relative
path if the script lives in a safe path -- that is, if it lives in
/bin, /sbin, /usr/bin, or /usr/sbin, or must be an absolute path
instead. The environment variable
.B KERNEL_PACKAGE_VERSION
shall be set to the version of the kernel\-package that created the
package. This script shall be called with two arguments, the first
being the
.I name
of the package being installed, and the second argument being the
.I version
of the package being installed. Errors in the script shall cause the
postinst to fail.
This script is run
.I after
the scripts in /etc/kernel/header_postinst.d directory.
.TP
.B clobber_modules
If set, the preinst shall silently try to move /lib/modules/version
out of the way if it is the same version as the image being
installed. Use at your own risk.
This variable is unset by default.
.TP
.B warn_reboot
This variable can be used to turn off the warning given when
installing a kernel image which is the same version as the currently
running version. If the modules list is changed, the modules
dependencies may have been changed, and the modules for the new kernel
may not run correctly on the running kernel if the kernel ABI has
changed in the meanwhile. It is a good idea to reboot, and this is a
note to remind you. If you know what you are doing, you can set this
variable to no. This variable is set by default.
.TP
.B relink_build_link
This option manipulates the build link created by recent kernels. If
the link is a dangling link, and if a the corresponding kernel headers
appear to have been installed on the system, a new symlink shall be
created to point to them. The default is to relink the build link
(YES).
.TP
.B force_build_link
This option manipulates the build link created by recent kernels. If
the link is a dangling link, a new symlink shall be created to point
to kernel headers data in /usr/src, whether they have been installed or
not. The default is unset, we don't create potentially dangling
symlinks by default.
.TP
.B relink_src_link
This option manipulates the source link created by recent kernels. If
the link is a dangling link it is deleted at install time. The default
is to relink (delete) the source link (YES).
.TP
.B silent_modules
This option has been put in for the people who are vastly irritated on
being warned about preexisting modules directory
.I /lib/modules/$version
That directory may belong to an old or defunct kernel image package,
in which case problems may arise with leftover modules in that
directory tree, or the directory may legitimately exist due to a
independent modules package being installed for this kernel version
that has already been unpacked.  In this latter case the existence of
the directory is benign.  If you set this variable, you shall no
longer be given a chance to abort if a preexisting modules directory
.I /lib/modules/$version
is detected.  This is unset be default.
.TP
.B ignore_depmod_err
If set, does not prompt to continue after a depmod problem in the
postinstall script. This facilitates automated installs, though it may
mask a problem with the kernel image. A diagnostic is still
issued. This is unset be default.
.SH FILES
The file described here is
.I /etc/kernel\-img.conf.
.SH "SEE ALSO"
.BR make\-kpkg (1),
.BR kernel\-pkg.conf (5),
.BR make (1),
.B The GNU Make manual.
.SH BUGS
There are no bugs.  Any resemblance thereof is delirium. Really.
.SH AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>,
for the Debian GNU/Linux system.