2

Sorry for this I have seen it before but today i can not find it.

I simply want to set default=last OS selected. I can't get grub customizer set it.

treyiii
  • 71
  • 1
  • 1
  • 11
  • https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen – guiverc Jan 02 '20 at 22:53
  • 1
    Does this answer your question? [How can I edit my Grub bootloader entries (Hide, Rename, Remove)? Preferably doing it manually, and not with a program](https://askubuntu.com/questions/81660/how-can-i-edit-my-grub-bootloader-entries-hide-rename-remove-preferably-doi) – K7AAY Jan 02 '20 at 23:29
  • Duplicate refers to using Grub customizer, even though also there, the question was for a command line approach. – vanadium Jan 03 '20 at 10:28

1 Answers1

4
sudo nano /etc/default/grub

Add

GRUB_DEFAULT=saved                                                                                                                                           
GRUB_SAVEDEFAULT=true 

After that run

sudo update-grub

Boot your desired OS.

Note that if you have a dualboot with another Linux OS, this has to be done in the system with leading GRUB2.

More info are available in the

info -f grub -n 'Simple configuration'
BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
nobody
  • 5,149
  • 5
  • 22
  • 43