X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=system-booting.adoc;h=f40a469a64e53cbac53d77a75b68c6d2cc890ebd;hb=1722c45bca48cb64d22a13c03e0a5398f11d4fc9;hp=28507a2d4c1587e61e6b88e5b118c2e82425a3e0;hpb=0daaddbdc0bce7af1dddeea637d0ea69c73aa088;p=pve-docs.git diff --git a/system-booting.adoc b/system-booting.adoc index 28507a2..f40a469 100644 --- a/system-booting.adoc +++ b/system-booting.adoc @@ -118,29 +118,36 @@ initrd /EFI/proxmox/5.0.15-1-pve/initrd.img-5.0.15-1-pve .Manually keeping a kernel bootable 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`) -* copy the kernel and initrd image to that directory -* create a entry for this kernel in `/loader/entries/*.conf` +For example run the following to add the kernel with ABI version `5.0.15-1-pve` +to the list of kernels to keep installed and synced to all ESPs: -NOTE: do not use `/EFI/proxmox` as directory since all entries there can be -removed by `/etc/kernel/postinst.d/zz-pve-efiboot` +---- +pve-efiboot-tool kernel add 5.0.15-1-pve +---- + +`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 +---- -Example (keeping kernel 5.0.15-1-pve and copying to an ESP mounted on -`/mnt/esp`): +Run `pve-efiboot-tool remove` to remove a kernel from the list of manually +selected kernels, for example: ---- -mkdir /mnt/esp/EFI/preferred-kernel -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 remove 5.0.15-1-pve ---- + [[sysboot_systemd_boot_setup]] .Setting up a new partition for use as synced ESP @@ -158,7 +165,7 @@ pve-efiboot-tool format /dev/sda2 ---- To setup an existing, unmounted ESP located on `/dev/sda2` for inclusion in -{pve}'s synchronization mechanism, use the following: +{pve}'s kernel update synchronization mechanism, use the following: ---- pve-efiboot-tool init /dev/sda2