LINUX-RUN-HOOKS(1)
π LINUX-RUN-HOOKS π
okay so bestie, welcome to the linux-run-hooks page β she's a tiny little helper program, and her whole job is running package installation or removal hooks. let's get into it β¨
πΈ SYNOPSIS πΈ
linux-run-hooks image MAINT-SCRIPT KERNEL-VER IMAGE-PATH
-- MAINT-PARAMS ...
linux-run-hooks headers MAINT-SCRIPT KERNEL-VER
-- MAINT-PARAMS ...
like. look at her. two whole modes, two whole vibes π
π¦ DESCRPTION π¦
(yes bestie, it's literally spelled like that, we are not touching it π)
so linux-run-hooks is meant to be called from the maintainer scripts of Linux kernel image and headers packages. she doesn't do the heavy lifting herself β she calls up the run-parts command to execute all the hooks that have been installed into the appropriate subdirectories of /etc/kernel and /usr/share/kernel. no cap, that's the whole bit π«Ά
the first argument is the package type, and it has to be either image or headers. pick one, she's not gonna guess π
the MAINT-SCRIPT argument has to be the name of the maintainer script, and the only four that are allowed are:
preinstpostinstprermpostrm
that's the list. those are the ones. periodt π
the KERNEL-VER argument has to be the kernel version string β the one exactly as shown by uname -r, and the one that gets used in filenames. and listen, it is NOT the package version, okay?? not the same thing, don't get it twisted π
the IMAGE-PATH argument has to be the absolute filename of the kernel image. absolute. like from the root. don't hand her a lil relative path and expect main character energy π
and the MAINT-PARAMS arguments have to be the parameters that the maintainer script received. you just pass them straight on through, handoff style π
fr fr, this thing is a go-between β your maintainer script hands her stuff, she hands it to the hooks. keep every argument exactly what it says it is and everyone eats π₯
π AUTHOR π
linux-run-hooks and this manual page were written by Ben Hutchings as part of the Debian linux-base package. iconic behaviour, honestly π
and that's the whole page bestie!! π this was the General Commands Manual entry for linux-run-hooks, dated 3 May 2025. go forth and run those hooks, you absolute legend π¦β¨π
π¦ where this page comes from
- debian bookworm: linux-base 4.12.1~deb12u1 Β· GPL-2.0-only
- debian trixie: linux-base 4.12.1 Β· GPL-2.0-only
- ubuntu resolute: linux-base 4.15ubuntu5 Β· GPL-2.0-only
- ubuntu stonking: linux-base 4.17ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms