Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1689543 - not all installed kernels are included in the grub menu
Summary: not all installed kernels are included in the grub menu
Keywords:
Status: MODIFIED
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1689329 1692046 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-16 15:36 UTC by Andre Robatino
Modified: 2019-04-13 23:32 UTC (History)
5 users (show)

Fixed In Version: grub2-2.02-74.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
contents of /boot/loader/entries (deleted)
2019-03-16 15:36 UTC, Andre Robatino
no flags Details
/etc/grub2.cfg (deleted)
2019-03-16 15:38 UTC, Andre Robatino
no flags Details
/boot/grub2/grubenv (deleted)
2019-03-16 15:39 UTC, Andre Robatino
no flags Details
grub console output (somewhat corrupted, but i'm told by Javier it has what he needed to figure it out) (deleted)
2019-03-18 12:17 UTC, Andre Robatino
no flags Details

Description Andre Robatino 2019-03-16 15:36:08 UTC
Created attachment 1544835 [details]
contents of /boot/loader/entries

Description of problem:
I have 3 installed kernels (5.0.0-1.fc31.x86_64, 5.1.0-0.rc0.git7.1.fc31.x86_64, and 5.1.0-0.rc0.git9.1.fc31.x86_64), but only the last two currently appear in the grub menu. Attaching contents of /boot/loader/entries, and also grub2.cfg and grubenv.

Version-Release number of selected component (if applicable):
grub2-common-2.02-72.fc31.noarch

How reproducible:
sometimes (often appears or goes away when a new kernel is installed)

Comment 1 Andre Robatino 2019-03-16 15:38:00 UTC
Created attachment 1544836 [details]
/etc/grub2.cfg

Comment 2 Andre Robatino 2019-03-16 15:39:31 UTC
Created attachment 1544837 [details]
/boot/grub2/grubenv

Comment 3 Andre Robatino 2019-03-16 19:18:42 UTC
I was running the oldest kernel (5.0.0-1.fc31.x86_64) when I did the kernel update that led to this happening again. Just prior to this update, all kernels appeared in the menu. Most people run the newest kernel all the time, maybe that's why I triggered it?

Comment 4 Javier Martinez Canillas 2019-03-18 10:06:28 UTC
Hello Andre,

I was not able to reproduce this issue using your BLS snippets, grub2.cfg and grubenv in neither legacy BIOS (that's your case) nor EFI installs. In both cases I can see the 4 boot entries in the GRUB menu.

Since you have a legacy BIOS install, could you please make sure that you are using the latest version of the GRUB package? Only on EFI installs GRUB gets updated on a package upgrade, so for legacy BIOS you need to do:

$ grub2-install /dev/sda (or whatever is the block device where GRUB is installed on your machine).

If the issue is still present for you, could you please enable debugging for the blscfg module and share any relevant messages:

$ grub2-editenv - set debug=blscfg

Also, could you please test if the blscfg module is able to load and parse the missing BLS entry, i.e:

grub> blscfg (hd0,msdos1)/loader/entries/edc84602f0e54fc7a189e20fb45e92cc-5.0.0-1.fc31.x86_64.conf

Best regards,
Javier

Comment 5 Andre Robatino 2019-03-18 12:17:08 UTC
Created attachment 1545199 [details]
grub console output (somewhat corrupted, but i'm told by Javier it has what he needed to figure it out)

Comment 6 Javier Martinez Canillas 2019-03-22 15:28:20 UTC
*** Bug 1689329 has been marked as a duplicate of this bug. ***

Comment 7 Peter Robinson 2019-03-25 12:56:26 UTC
*** Bug 1692046 has been marked as a duplicate of this bug. ***

Comment 8 Andre Robatino 2019-04-13 23:32:26 UTC
So far, so good. I've always seeing all 3 installed kernels in the menu now. Feel free to close this if you want. Thanks!


Note You need to log in before you can comment on or make changes to this bug.