linux-run-hooks(1)

linux-run-hooks1

Run package installation or removal hooks

Usage

linux-run-hooks image MAINT-SCRIPT KERNEL-VER IMAGE-PATH -- MAINT-PARAMS ...

linux-run-hooks headers MAINT-SCRIPT KERNEL-VER -- MAINT-PARAMS ...

Descrption

linux-run-hooks is intended to be called from the maintainer scripts of Linux kernel image and headers packages. It uses the run-parts command to execute hooks installed in the appropriate subdirectories of /etc/kernel and /usr/share/kernel.

The first argument is the package type; either image or headers.

The MAINT-SCRIPT argument must be the name of the maintainer script: preinst, postinst, prerm, or postrm.

The KERNEL-VER argument must be the kernel version string as shown by uname -r and used in filenames, not the package version.

The IMAGE-PATH argument must be the absolute filename of the kernel image.

The MAINT-PARAMS arguments must be the parameters received by the maintainer script.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Author

linux-run-hooks and this manual page were written by Ben Hutchings as part of the Debian linux-base package.

From linux-base 4.12.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.