grub.cfg
does control the basic behavior of grub and booting. Are you sure you are installed and booting via UEFI? Your /boot/efi/EFI/rocky
directory does not appear normal.
[root@xmpp01 ~]# ls -l /boot/efi/EFI/rocky/
total 6100
-rwx------. 1 root root 130 Nov 17 22:29 BOOTX64.CSV
-rwx------. 1 root root 144 Jul 14 2022 grub.cfg
-rwx------. 1 root root 7028 Jul 14 2022 grub.cfg.rpmsave
-rwx------. 1 root root 2525120 Feb 14 12:06 grubx64.efi
-rwx------. 1 root root 856856 Nov 17 22:29 mmx64.efi
-rwx------. 1 root root 947216 Nov 17 22:29 shim.efi
-rwx------. 1 root root 947216 Nov 17 22:29 shimx64.efi
-rwx------. 1 root root 939648 Nov 17 22:29 shimx64-rocky.efi
You’re missing many efi files. You might want to check if /sys/firmware/efi
exists, which will tell you if you are indeed booting via UEFI. You should also have an entirely separate /boot/efi
partition, which is a requirement in UEFI scenarios.