The grub doesn’t get updated with my changes, I tried this with RL9.2 and it’s working correctly, fresh install of RL9.3 doesn’t work, and if you update from 9.2 to 9.3 it stops working.
Way to reproduce:
Install a fresh copy of RL9.3 minimal with all the defaults, change the values in /etc/default/grub then run grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg reboot the machine wait for the grub bootleader menu to load press “e” to edit then notice that your changes are not there.
Thanks I’ll try to find a workaround so far only works in 9.2 and my changes do stay if I add the changes in 9.2 then update to 9.3, not sure what could be happening here.
What you’re experiencing won’t be a bug. If the suggested command does not work for you still, consider adding --update-bls-cmdline. You may also want to consider using grubby instead.
In el8 (and el7) the grub.cfg is in /boot/efi/EFI/${VENDOR}/ for EFI system and in /boot/grub2/ for legacy system.
If el9 the actual grub.cfg is in /boot/grub2/ for both, and EFI system has in /boot/efi/EFI/${VENDOR}/ a stub that you don’t want to change after install. An example stub:
I tried doing grub2-mkconfig -o /boot/grub2/grub.cfg and It did not work, what is the best practice to modify this, seems like things change much. Thank You
My bad sorry I missed this grub2-mkconfig --update-bls-cmdline -o /boot/grub2/grub.cfg this works.