figured out how to modify the Grub2 boot entry or boot order. 2 interesting ways:
-
Doing “sudo grub2-set-default x”, where x is the index of the entry position corresponding to the operating system to be booted. In this case, whenever the grub2 menu is started, the entry corresponding to the chosen index will always be selected
-
In the etc/default/grub file, adding the entries “GRUB_DEFAULT=saved” and “GRUB_SAVEDEFAULT=true”, and after that, run “sudo grub2-mkconfig -o /boot/grub2/grub.cfg”, a similar situation to 1." will be applied, with the difference that the selected entry mentioned will always be the last one chosen by the user in the grub2 menu of the last run. It’s the default setting used in Endless OS, for example, and I think it’s great!