kernel-install

manages kernel images in the boot partition

TLDR

Add kernel and initramfs to bootloader
$ sudo kernel-install add [kernel-version] [kernel-image] [path/to/initrd]
Remove kernel from bootloader
$ sudo kernel-install remove [kernel-version]
Inspect configuration and auto-detected paths
$ sudo kernel-install inspect [kernel-image]

SYNOPSIS

kernel-install command [options]

DESCRIPTION

kernel-install manages kernel images in the boot partition. It's part of systemd and handles the installation and removal of kernel images for systemd-boot and other bootloaders.The tool runs plugins (install.d scripts) that handle tasks like copying files, generating bootloader entries, and updating the initramfs. It integrates with the Boot Loader Specification.

PARAMETERS

add VERSION KERNEL [INITRD...]

Add kernel and optional initramfs images to boot partition
remove VERSION
Remove kernel and associated files from boot partition
inspect [KERNEL]
Display configured and auto-detected paths

INSTALL

sudo apt install systemd
sudo dnf install systemd
sudo pacman -S systemd
sudo zypper install systemd
brew install systemd
nix profile install nixpkgs#systemd

CAVEATS

Requires root privileges. Behavior depends on installed plugins. Works best with systemd-boot but can support other bootloaders through plugins.

HISTORY

kernel-install is part of systemd, providing a standardized way to manage kernel installation. It implements the Boot Loader Specification for portable boot configurations.

SEE ALSO

bootctl(1), dracut(8)