- Open /etc/default/grub and ensure this line exists:
GRUB_DEFAULT=saved
- Apply the change to grub.cfg by running:
grub2-mkconfig -o /boot/grub2/grub.cfg
- Run this to set default to Windows
grub2-set-default "$(grep -o "Windows[^']*" /boot/grub2/grub.cfg)" && grub2-editenv list
This instructions concern BIOS-based machines. For UEFI-machines path to grub config file is
see https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/