table of contents
- buster 241-7~deb10u7
- buster-backports 247.3-6~bpo10+1
- testing 247.3-6
- unstable 247.3-6
- experimental 249.3-3
KERNEL-INSTALL(8) | kernel-install | KERNEL-INSTALL(8) |
NAME¶
kernel-install - Add and remove kernel and initramfs images to and from /bootSYNOPSIS¶
kernel-install COMMAND KERNEL-VERSION KERNEL-IMAGE [INITRD-FILE...]
DESCRIPTION¶
kernel-install is used to install and remove kernel and initramfs images to and from /boot.kernel-install will execute the files located in the directory /usr/lib/kernel/install.d/ and the local administration directory /etc/kernel/install.d/. All files are collectively sorted and executed in lexical order, regardless of the directory in which they live. However, files with identical filenames replace each other. Files in /etc/kernel/install.d/ take precedence over files with the same name in /usr/lib/kernel/install.d/. This can be used to override a system-supplied executables with a local file if needed; a symbolic link in /etc/kernel/install.d/ with the same name as an executable in /usr/lib/kernel/install.d/, pointing to /dev/null, disables the executable entirely. Executables must have the extension ".install"; other extensions are ignored.
An executable should return 0 on success. It may also return 77 to cause the whole operation to terminate (executables later in lexical order will be skipped).
COMMANDS¶
The following commands are understood:add KERNEL-VERSION KERNEL-IMAGE [INITRD-FILE ...]
add KERNEL-VERSION /boot/MACHINE-ID/KERNEL-VERSION/ KERNEL-IMAGE [INITRD-FILE ...]
Two default plugins execute the following operations in this case:
remove KERNEL-VERSION
remove KERNEL-VERSION /boot/MACHINE-ID/KERNEL-VERSION/
Afterwards, kernel-install removes the directory /boot/MACHINE-ID/KERNEL-VERSION/ and its contents.
Two default plugins execute the following operations in this case:
EXIT STATUS¶
If every executable returns 0 or 77, 0 is returned, and a non-zero failure code otherwise.FILES¶
/usr/lib/kernel/install.d/*.install /etc/kernel/install.d/*.install/etc/kernel/cmdline /proc/cmdline
/etc/kernel/tries
/etc/machine-id
/etc/os-release /usr/lib/os-release
SEE ALSO¶
machine-id(5), os-release(5), depmod(8), systemd-boot(7), Boot Loader Specification[1]NOTES¶
- 1.
- Boot Loader Specification
systemd 241 |