grub2: which /boot/efi/EFI/*/grub.cfg does it read?

I have a dualboot linux, fedora and almalinux.

After installing almalinux, I couldn’t see the fedora’s kernel versions, just multiple entries of Fedora.

Most of the links I found are wrong.

They tell me to use /boot/grub2/grub.cfg but this entry is only for BIOS-based boot, not EFI.

Tells clearly we should use /boot/efi/EFI/*/grub.cfg.

Which one should I use in the case where I have multi linux? /boot/efi/EFI/almalinux/grub.cfg or /boot/efi/EFI/fedora/grub.cfg?

What if I have multiple instances of fedora?

Read more here: Source link