コンテンツにスキップ

「Kernel-install」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
Kgx (トーク | 投稿記録)
英語版から転載
 
Kgx (トーク | 投稿記録)
一部翻訳
2行目: 2行目:
[[Category:ブートプロセス]]
[[Category:ブートプロセス]]
[[en:Kernel-install]]
[[en:Kernel-install]]
{{man|8|kernel-install}} は、[[カーネル]] を自動的に移動させるためのスクリプトです。
{{man|8|kernel-install}} is a script used to automatically move [[kernel]]s and their
それぞれの [[initramfs]] イメージをブートパーティションに配置する。
respective [[initramfs]] images to the boot partition
(通常は {{ic|/boot}} または {{ic|/efi}} にマウントされます。) スクリプトシステムを使用しており、機能を拡張することができます。
(usually mounted at {{ic|/boot}} or {{ic|/efi}}). It uses a script system which can extend its functionality.
また、インストールされたカーネルと initramfs に対して [[systemd-boot]] のブートエントリを作成します。
It also creates boot entries for [[systemd-boot]] for the installed kernel and initramfs.


== Installation ==
== インストール ==


''kernel-install'' is part of and packaged with {{Pkg|systemd}}.
''kernel-install'' {{Pkg|systemd}} の一部であり、同梱されています。


== Usage ==
== 使い方 ==


The {{ic|kernel-install}} script is not an initramfs generator itself, but uses another program,
{{ic|kernel-install}} スクリプトは、initramfs 生成そのものではなく、別のプログラムを使用しています、
such as [[mkinitcpio]] or [[dracut]] to generate an initramfs. In order to use an initramfs,
[[mkinitcpio]] [[dracut]] などで initramfs を生成してください。initramfs を利用するためには
initramfs ジェネレーターを [[インストール]] する必要があります。
an initramfs generator must be [[install]]ed.


=== Adding kernels ===
=== Adding kernels ===

2023年3月23日 (木) 21:43時点における版

kernel-install(8) は、カーネル を自動的に移動させるためのスクリプトです。 それぞれの initramfs イメージをブートパーティションに配置する。 (通常は /boot または /efi にマウントされます。) スクリプトシステムを使用しており、機能を拡張することができます。 また、インストールされたカーネルと initramfs に対して systemd-boot のブートエントリを作成します。

インストール

kernel-installsystemd の一部であり、同梱されています。

使い方

kernel-install スクリプトは、initramfs 生成そのものではなく、別のプログラムを使用しています、 mkinitcpiodracut などで initramfs を生成してください。initramfs を利用するためには initramfs ジェネレーターを インストール する必要があります。

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