Let’s assume that my GRUB menu consists of only two entries:
- DailyLinux
- GameLinux
And also let’s assume that I mainly use the DailyLinux, and it is also the default boot entry, and from time to time I switch to the GameLinux. Normally, when I want to game, I should press the restart button, go to the GRUB menu, and select the GameLinux entry. This whole process is actually very quick. But still, I sometimes just want to press restart, go get a snack, and return back to see the login screen of the GameLinux, instead of waiting in front of the PC to select the GameLinux entry. I wonder if there is a way to make such a script, or a config, or a service.
I should also add that I preferebly don’t want to run update-grub everytime this reboot-script runs, as it will need sudo, and will also take a few seconds to regenerate the menu.
Anyway, I am thinking of something that I could use like this: reboot-entry 0 or reboot-entry 1. But I don’t really know how to make it work good. I thought about changing the DEFAULT-ENTRY option, but I would really appreciate hearing other methods as well.