First add a couple options to the following file:
sudo nvim /etc/default/grub
Make sure that the configuration is as follow, specially the DEFAULT
and SAVEDEFAULT
for convenience's sake
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
[Optionals]
Change windows as the default boot, to do so run the following:
awk -F\' '$1=="menuentry " {print $2}' /boot/grub2/grub.cfg
it will output something along the lines of Windows Boot Manager (on /dev/[replace])
. Then, you can run the following:
sudo grub2-set-default "Windows Boot Manager (on /dev/[replace])"
[Updating grub]
sudo grub2-mkconfig -o /boot/grub2/grub.cfg