The grub configuration file is automatically generated by grub2-mkconfig using templates from /etc/grub.d and settings from /etc/default/grub file. You edit the /etc/default/grub file and run the sudo grub2-mkconfig -o /boot/grub2/grub.cfg command to generate the configuration file.
1 Like