LinuxCommandLibrary

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]
copy
Remove kernel from bootloader
$ sudo kernel-install remove [kernel-version]
copy
Inspect configuration and auto-detected paths
$ sudo kernel-install inspect [kernel-image]
copy

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

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community