i am dual booting popos (ubuntu 22.04 based) and brazzite (fedora 39 based).
what i have in the grub menu is attached as screenshot. it seems to boot to the grub menu with 5 seconds timeout if the last used os was brazzite, but on rebooting/ cold booting from popos, it directly goes to login screen.
what i would like to do is have popos be selected by default but have the timeout be 10-15 seconds (or indefinite). i have been following this guide at https://www.baeldung.com/linux/grub-menu-management.
but still timeout remains 5 seconds, lwading me to believe these parameters arent being followed. also, unlike in the guide, entries in /boot/loader/entries and those in grubby --info=ALL are different.
sudo sh -c 'grep title /boot/loader/entries/* | cut -d " " -f2-'
Fedora Linux 39.20240415.0 (Bazzite GNOME) (ostree:1)
Fedora Linux 39.20240418.0 (Bazzite GNOME) (ostree:0)
This is a fedora forum, and you are asking about popos.
However, if you want the grub timeout to be 15 seconds you need to set it as 15 sec in the /etc/default/grub file then update the grub.cfg file. On fedora workstation that would be done with the grub2-mkconfig command. I don’t know how it is managed on popos or on an atomic fedora based system since I don’t regularly use those.
It seems you are showing some of the outputs from both OSes.
The info from the grub file are enough different than what is in the grubby output that I have to wonder if you are mixing data from the 2 systems in what is displayed.
It is well known that fedora can usually detect other OSes and set up the grub menu to select as desired, while most ubuntu based systems cannot (or do not) do the same.
sorry, i didnt realise this was popos causing the issue.
all the outputs in the question description are from within fedora and the grub file was modified as you (and as the tutorial i was following) said, within fedora. i set it to “-1” thinking it would cause it to not timeout at all (but that didnt work).
i understand that it is easier for fedora is setup the grub menu (plus i couldnt find much up to date documentations from ubuntu side of things), which is why i decided to try and make these changes from within fedora.
but thanks anyway. if nothing else, im fine with selecting from uefi as and when needed.
Quite all right.
That was my error because I did not understand that you were working in fedora since the output from rubby only showed PopOS entries.
Now that you have said you are trying to get fedora to boot both with the allowed timeout then we can work with that.
First, you would probably need to have the grub menu displayed at all times.
That can easily be done with sudo grub2-editenv unset menu_auto_hide so it does not automatically hide the menu when booting.
Next set the timeout as desired. Edit the /etc/default/grub file and set it to 15 for a 15 second delay, then run sudo grub2-mkdonfig -o /boot/grub2/grub.cfg to make that effective.
Then reboot to test both changes.
Now let us know the details of what else you would like to change and we can work on that one at a time.
this worked splendidly and i am now able to select what to boot into, leisurely. curiously though, these instructions are same as those that i followed from the linked tutorial, but i dont know why it didnt work then. perhaps a typo? or perhaps, like you, the grubby output threw me off and i a-ssumed something else went wrong and never did grub2-mkconfig.
in any case, thank you so much for the help.
on a side note, brazzite thus far is hands down the best out of the box gaming experience ive had (on my hardware). while i cant use it as my primary os (as work needs debian, and i dont fully understand the rpm-ostree thing), this will default as my recommendation for a great gaming box.