Summary: | sys-kernel/installkernel-37 does not update bootorder | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert Greener <dev> |
Component: | Current packages | Assignee: | Distribution Kernel Project <dist-kernel> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | dev, nowa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Robert Greener
2024-04-26 19:26:55 UTC
Please see: https://wiki.gentoo.org/wiki/EFI_stub#Systemd_kernel-install Kernel-bootcfg from virt-manager creates the new entry and sets it as BootNext, then on successful reboot the systemd service kernel-bootcfg-boot-successful.service is responsible for adding the new entry to the bootorder. This is working correctly since you have > BootNext: 0001 And 0001 is the entry for Gentoo If you firmware boots directly into windows on reboot then it does not respect BootNext and this means you unfortunately cannot use efistub booting on that machine. If it boots into Gentoo correctly on the first reboot, but then reboots into windows on consecutive reboots then you have not enabled the kernel-bootcfg-boot-successful.service systemd service. If the firmware does respect BootNext, and the systemd service is enabled, and it still does not update the bootorder, then your firmware does not allow adjusting the bootorder from the OS (this is not uncommon) and this also unfortunately means you cannot use efistub booting on that machine. Note that some systems do allow adjusting the bootorder from the OS, but only if Secure Boot is enabled and the efi file that was booted is signed with an accepted key (NOT via sys-boot/shim). So please double check that you have enabled kernel-bootcfg-boot-successful.service and that it exits successfully after rebooting. If this is setup correctly and the service exists successfully but it still does not work then this is another case of a "bugged" UEFI firmware. You can try updating the firmware, but if that does not resolve the issue I recommend using systemd-boot or rEFInd instead. Ah yes, I had not enabled kernel-bootcfg-boot-successful -- thanks! |