2025-03-14 21:59:59 -06:00
|
|
|
# kernel-install
|
|
|
|
|
|
|
|
|
|
> Add and remove kernel and initrd images to and from `/boot`.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/kernel-install.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Show the current kernel configuration that has been configured or auto-detected:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`kernel-install`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Show the configuration for a specific kernel image:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`kernel-install inspect {{path/to/kernel_image}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Add a kernel to the bootloader partition:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo kernel-install add {{kernel_version}} {{path/to/kernel_image}}`
|
|
|
|
|
|
|
|
|
|
- Add a kernel and initramfs images to the bootloader partition:
|
|
|
|
|
|
|
|
|
|
`sudo kernel-install add {{kernel_version}} {{path/to/kernel_image}} {{path/to/initrd1 path/to/initrd2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Remove a kernel from the bootloader partition:
|
|
|
|
|
|
|
|
|
|
`sudo kernel-install remove {{kernel_version}}`
|