Ask Your Question

Revision history [back]

https://fedoraproject.org/wiki/GRUB_2#Setting_default_entry

Open /etc/default/grub and ensure this line exists:

GRUB_DEFAULT=saved

and ensure this line not exists:

GRUB_SAVEDEFAULT=true

or ensure this line exists:

GRUB_SAVEDEFAULT=false

next:

grep -P "submenu|^menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2

grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-set-default "<submenu title><menu entry title>"