Generate GRUB2 configuration file (Fedora/RHEL-based)
grub2-mkconfig -o /boot/grub2/grub.cfg
Creates or updates the GRUB2 configuration file (/boot/grub2/grub.cfg) on Fedora, CentOS, or RHEL systems based on the current system setup and available kernels.