Change boot order Fedora and Windows 10

I have tried to use the method below to change the boot order but i have failed to rebuild the grub.cfg file successfully using

sudo grub2-mkconfig -o /boot/grub2/grub.cfg
I instead get an output like /etc/default/grub: line 9: GRUB: command not found
What could be the problem and how can i fix it?

Give us output of cat /etc/default/grub

I have just found out why it wasn’t working. i missed an underscore. I typed GRUB SAVEDEFAULT=true instead of GRUB_SAVEDEFAULT=true

Otherwise thanks :pray:

1 Like