I’m trying to update my grub boot order back to booting the first option instead of the second, so I run sudo nano /etc/default/grub, but it brings up this, which is not the file I want to edit.
I’m on fedora 38

I’m trying to update my grub boot order back to booting the first option instead of the second, so I run sudo nano /etc/default/grub, but it brings up this, which is not the file I want to edit.
I’m on fedora 38

This looks like
grub2-mkconfigwas run with the output mistakenly set to/etc/default/grub. Someone rangrub2-mkconfig -o /etc/default/grubInstead of
grub2-mkconfig -o /boot/grub2/grub.cfg