On 9/1/23 03:54, Sam Varshavchik wrote:
Stephen Morris writes:

And at boot/reboot, GRUB had to be configured to read the default
variable to see which menu item to boot.

I lack the perseverance to read through the conglomeration of GRUB menu
files to see what it does these days.

From a google check for the default grub kernel boots it seems that if you add the following two statements into /etc/default/grub and then run grub2-mkconfig grub will use the last selected kernel as the default boot kernel.

GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

I have never diddled my /etc/default/grub. Currently it has only

GRUB_DEFAULT=saved

a bunch of other stuff, no explicit GRUB_SAVEDEFAULT=true. I wonder what that ends up doing…
My /etc/default/grub is the same. I only ever have 1 kernel entry in the main menu section for Fedora and Ubuntu, the other kernels are in sub-menus. When I boot the Fedora kernel is the first entry in the menu and when the count down timer expires Fedora is booted. I am assuming that if instead I booted into Ubuntu or Windows for that matter the combination of the two statements would cause all subsequent boots to boot either Ubuntu or Windows (depending on which one was booted in to) until such time as a different menu entry was selected and then it would become the default boot entry. Again from what I have read, these two statements don't work if you have booted from a sub-menu, other steps need to be taken to make that entry the default boot entry.

regards,
Steve




_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to