KERNEL-IMG.CONF(5)
β¨ KERNEL-IMG.CONF(5) β¨
Debian GNU/Linux manual π
π NAME π
kernel-img.conf β the config file for Linux kernel packages β¨
π§ SYNOPSIS π§
/etc/kernel-img.conf
πΈ DESCRIPTION πΈ
okay so bestie, /etc/kernel-img.conf is the file the kernel package install and removal process reads so you can set your own local options for how some parts of the install get handled π
Not every kernel image package maker actually respects this file, so check your setup π
- Debian linux source package β supported β
- Ubuntu linux source package β supported β
- make deb-pkg β ignored π
The format is super simple, just VAR=VALUE pairs. Boolean values can be written as Yes, True, 1 for on, or No, False, 0 for off, and it doesn't care about capitalization, so slay however you like π¦
Heads up: the installation script will sometimes create this file automatically all on its own π«Ά
Right now, these are the user-modifiable variables that work:
do_symlinks
If this is set, the postinst and postrm scripts keep symlinks pointing to the default kernel and initramfs images, just like linux-update-symlinks(8) describes. It's set by default, so you're already winning β¨
image_dest
Set this to the directory where you want the symlinks to the default kernel and initramfs images to live. If you don't touch it, the default is / π
link_in_boot
If this is set, it works exactly like image_dest = /boot, and it overrides any other image_dest setting you've got going on π It's unset by default, so you have to opt in π
π FILES π
The only file in play here is /etc/kernel-img.conf π
π¦ SEE ALSO π¦
linux-update-symlinks(8) π₯
π AUTHOR π
This manual page was written by Manoj Srivastava <srivasta@debian.org> and Ben Hutchings <benh@debian.org> for the Debian GNU/Linux system π«Ά
Bestie, that's the whole page! π Source: Debian GNU/Linux manual, dated 25 May 2025, page KERNEL-IMG.CONF(5). Periodt π β¨
π¦ 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 questing: linux-base 4.14ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: linux-base 4.15ubuntu5 Β· GPL-2.0-only
- ubuntu stonking: linux-base 4.17ubuntu1 Β· GPL-2.0-only
- Copyright (c) 2000 Manoj Srivastava <srivasta@debian.org>
- Copyright 2019 Ben Hutchings <benh@debian.org>
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms