Description of problem: grub2-mkconfig -o /boot/grub2/grub.cfg does not write useful information about kernels bootable into /boot/grub2/grub.cfg. In tune there is no bootable kernel listed within grubs menue while booting. The system does stop with grub loaded not booting further. Version-Release number of selected component (if applicable): grub2-tools-extra-2.02-70.fc30.x86_64 grub2-common-2.02-66.fc30.noarch grub2-tools-minimal-2.02-66.fc30.x86_64 grub2-common-2.02-70.fc30.noarch grub2-pc-modules-2.02-70.fc30.noarch grub2-pc-2.02-70.fc30.x86_64 grubby-8.40-24.fc30.x86_64 grub2-tools-minimal-2.02-70.fc30.x86_64 grub2-tools-2.02-70.fc30.x86_64 grub2-pc-modules-2.02-66.fc30.noarch grubby-8.40-27.fc30.x86_64 grub2-tools-efi-2.02-70.fc30.x86_64 How reproducible: Always Steps to Reproduce: 1. Install fedora 29 2. Upgrade to fedora rawhide 3. Look at kernels installed 4. call grub2-mkconfig -o /boot/grub2/grub.cfg 5. reboot 6. grub shows up, but no entry to boot fedora from. Actual results: No entry in grub menue to boot fedora from. Expected results: Grub boot menue showing up to select a kernel to boot. Additional info:
The boot entries not present in the GRUB config file is expected since Fedora now uses BLS files in /boot/loader/entries instead. GRUB not showing the entries is not expected of course. Is this an EFI or legacy BIOS install? Could you please run the blscfg command from the GRUB prompt and check if the menu is populated? If it's not, can you set debug=blscfg, run the blscfg command again and share the output? Also, can you share the content of your /boot/grub2/grubenv file and /boot/loader/entries directory? You can also try to load the old config file from the GRUB prompt, i.e: configfile /grub2/grub.cfg.rpmsave
In bug #1661955, comment #13, I've described the same issue.
(In reply to Yann Droneaud from comment #2) > In bug #1661955, comment #13, I've described the same issue. Which happen when upgrading from F29 to F30.
(In reply to Javier Martinez Canillas from comment #1) > The boot entries not present in the GRUB config file is expected since > Fedora now uses BLS files in /boot/loader/entries instead. GRUB not showing > the entries is not expected of course. > > Is this an EFI or legacy BIOS install? > > Could you please run the blscfg command from the GRUB prompt and check if > the menu is populated? The command was not available. Which mean my installed grub is not up to date. After running "grub2-install /dev/sda", grub now shows all entry.
There's also a way to workaround the issue without having to update installed boot loader: - remove GRUB_ENABLE_BLSCFG=true from /etc/default/grub - run grub2-mkconfig -o /boot/grub2/grub.cfg
See also #1599445
(In reply to Yann Droneaud from comment #6) > See also bug #1599445 And https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault#Upgrade.2Fcompatibility_impact
*** Bug 1687191 has been marked as a duplicate of this bug. ***
*** Bug 1686470 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 1652806 ***