Debian Codegraph @

man/linux-run-hooks.1

raw
1 .TH LINUX-RUN-HOOKS 1 "3 May 2025"
2 .SH NAME
3 linux\-run\-hooks \- run package installation or removal hooks
4
5 .SH SYNOPSIS
6 \fBlinux\-run\-hooks image\fB \fIMAINT\-SCRIPT KERNEL\-VER IMAGE\-PATH\fR
7 \fB--\fR \fIMAINT\-PARAMS\fR ...
8 .PP
9 \fBlinux\-run\-hooks headers\fB \fIMAINT\-SCRIPT KERNEL\-VER\fR
10 \fB--\fR \fIMAINT\-PARAMS\fR ...
11 .SH DESCRPTION
12 \fBlinux\-run\-hooks\fR is intended to be called from the maintainer
13 scripts of Linux kernel image and headers packages. It uses the
14 \fBrun-parts\fR command to execute hooks installed in the appropriate
15 subdirectories of \fB/etc/kernel\fR and \fB/usr/share/kernel\fR.
16 .PP
17 The first argument is the package type; either \fBimage\fR or
18 \fBheaders\fR.
19 .PP
20 The \fIMAINT\-SCRIPT\fR argument must be the name of the maintainer
21 script: \fBpreinst\fR, \fBpostinst\fR, \fBprerm\fR, or \fBpostrm\fR.
22 .PP
23 The \fIKERNEL\-VER\fR argument must be the kernel version string as
24 shown by \fBuname \-r\fR and used in filenames, not the package
25 version.
26 .PP
27 The \fIIMAGE\-PATH\fR argument must be the absolute filename of the
28 kernel image.
29 .PP
30 The \fIMAINT-PARAMS\fR arguments must be the parameters received by
31 the maintainer script.
32 .SH AUTHOR
33 \fBlinux\-run\-hooks\fR and this manual page were written by Ben
34 Hutchings as part of the Debian \fBlinux\-base\fR package.