Grub: how to remember the last boot choice?

I am meaning (and asking). If you just moved the numbering around in /etc/grub.d/. Then update-grub, every time you want it changed.

Or just edit /etc/default/grub and change the number next to “GRUB_DEFAULT=”.

Yes.

Of course, even easier.

Just asking if that was okay compromise for @Fred_VIE. It’s something.

1 Like

At the risk of over-simplifying matters (by adding just a little more complexity) one could also use rEFInd as the initial boot manager.

rEFInd can effectively chainload Grub, and as it provides efifs drivers (for either ext4orbtrfs) there is no need to create an ext4 /boot partition on an otherwise btrfs system.

The respective Grub settings can be left at their defaults as Grub would no longer be the boot manager in control of the multi-boot scenario, and rEFInd already has the capability to boot the “Last booted” entry by default.

I’ll ride off into the sunset now… :cowboy_hat_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.