Kernel-install

提供: ArchWiki
2023年3月23日 (木) 21:40時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

kernel-install(8) is a script used to automatically move kernels and their respective initramfs images to the boot partition (usually mounted at /boot or /efi). It uses a script system which can extend its functionality. It also creates boot entries for systemd-boot for the installed kernel and initramfs.

Installation

kernel-install is part of and packaged with systemd.

Usage

The kernel-install script is not an initramfs generator itself, but uses another program, such as mkinitcpio or dracut to generate an initramfs. In order to use an initramfs, an initramfs generator must be installed.

Adding kernels

One can install a kernel from /usr/lib/modules as follows:

# kernel-install add A.B.C-name /usr/lib/modules/A.B.C-name/vmlinuz

Removing kernels

To remove a kernel, use the remove subcommand:

# kernel-install remove A.B.C-name

Tips and tricks

Pacman hook

For a pacman hook triggering on update of a kernel package to install that kernel automatically, pacman-hook-kernel-installAUR can be installed.

Unified kernel images

See Unified kernel image#kernel-install

See also