Fedora 25: grub2-efi uses wrong configuration file
I recently had to upgrade the MBR to GPT on my boot drive and I also installed grub2-efi, since my new mainboard uses EFI. Now I have the problem that grub does not upgrade the list of available kernel images on the boot screen.
When I use
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
the correct list of kernel images is written to the configuration file. But when I boot my PC I get a different (old) list of kernel images, which shows kernel images that are no longer installed.
what is the output of
efibootmgr
?