mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-05-01 16:21:40 +00:00
boot: add new pve-efiboot-tool commands
to manage manually selected kernel list. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
4128e7ff64
commit
1722c45bca
@ -118,29 +118,36 @@ initrd /EFI/proxmox/5.0.15-1-pve/initrd.img-5.0.15-1-pve
|
|||||||
.Manually keeping a kernel bootable
|
.Manually keeping a kernel bootable
|
||||||
|
|
||||||
Should you wish to add a certain kernel and initrd image to the list of
|
Should you wish to add a certain kernel and initrd image to the list of
|
||||||
bootable kernels you need to:
|
bootable kernel use `pve-efiboot-tool kernel add`.
|
||||||
|
|
||||||
* create a directory on the ESP (e.g. `/EFI/personalkernel`)
|
For example run the following to add the kernel with ABI version `5.0.15-1-pve`
|
||||||
* copy the kernel and initrd image to that directory
|
to the list of kernels to keep installed and synced to all ESPs:
|
||||||
* create a entry for this kernel in `/loader/entries/*.conf`
|
|
||||||
|
|
||||||
NOTE: do not use `/EFI/proxmox` as directory since all entries there can be
|
|
||||||
removed by `/etc/kernel/postinst.d/zz-pve-efiboot`
|
|
||||||
|
|
||||||
Example (keeping kernel 5.0.15-1-pve and copying to an ESP mounted on
|
|
||||||
`/mnt/esp`):
|
|
||||||
|
|
||||||
----
|
----
|
||||||
mkdir /mnt/esp/EFI/preferred-kernel
|
pve-efiboot-tool kernel add 5.0.15-1-pve
|
||||||
cp /boot/initrd.img-5.0.15-1-pve /boot/vmlinuz-5.0.15-1-pve /mnt/esp/EFI/preferred-kernel
|
|
||||||
echo -n "title Preferred Kernel
|
|
||||||
version 5.0.15-1-pve
|
|
||||||
linux /mnt/esp/EFI/preferred-kernel/vmlinuz-5.0.15-1-pve
|
|
||||||
initrd /mnt/esp/EFI/preferred-kernel/initrd.img-5.0.15-1-pve
|
|
||||||
options " > /mnt/esp/loader/entries/preferred.conf
|
|
||||||
cat /etc/kernel/cmdline >> /mnt/esp/loader/entries/preferred.conf
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
`pve-efiboot-tool kernel list` will list all kernel versions currently selected
|
||||||
|
for booting:
|
||||||
|
|
||||||
|
----
|
||||||
|
# pve-efiboot-tool kernel list
|
||||||
|
Manually selected kernels:
|
||||||
|
5.0.15-1-pve
|
||||||
|
|
||||||
|
Automatically selected kernels:
|
||||||
|
5.0.12-1-pve
|
||||||
|
4.15.18-18-pve
|
||||||
|
----
|
||||||
|
|
||||||
|
Run `pve-efiboot-tool remove` to remove a kernel from the list of manually
|
||||||
|
selected kernels, for example:
|
||||||
|
|
||||||
|
----
|
||||||
|
pve-efiboot-tool kernel remove 5.0.15-1-pve
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
[[sysboot_systemd_boot_setup]]
|
[[sysboot_systemd_boot_setup]]
|
||||||
.Setting up a new partition for use as synced ESP
|
.Setting up a new partition for use as synced ESP
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user