Grub.cfg has no menuentry on RL9.5 - fresh install

I did a fresh install on DL380 G9. It has one HP RAID card 880i and two NVME PCI cards (2 NVME SSDs). The OS was installed on the NVME disks as root-mirror. With UEFI boot.

Everything looks good. except grub.cfg does not has any menuentry lines. So I get some error while booting and then it immediately boots into RL9.5

Following is noted:

# grubby --info=ALL
index=0
kernel="/boot/vmlinuz-5.14.0-503.14.1.el9_5.x86_64"
args="ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=UUID=xx-xx-xx-aec7-xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xxx:xx rhgb quiet"
root="UUID=xx-xx-44da-ac50-xx"
initrd="/boot/initramfs-5.14.0-503.14.1.el9_5.x86_64.img $tuned_initrd"
title="Rocky Linux (5.14.0-503.14.1.el9_5.x86_64) 9.5 (Blue Onyx)"
id="xx-5.14.0-503.14.1.el9_5.x86_64"
index=1
kernel="/boot/vmlinuz-0-rescue-xx"
args="ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=UUID=xx-xx-xx-aec7-xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xx:xx rhgb quiet"
root="UUID=xx-xx-44da-ac50-xx"
initrd="/boot/initramfs-0-rescue-xx.img"
title="Rocky Linux (0-rescue-xx) 9.5 (Blue Onyx)"
id="xx-0-rescue"

But no entry here:…

# grep menuentry /boot/grub2/grub.cfg 
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
	menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {

devices look like this:

# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda           8:0    0   8.2T  0 disk  
sdb           8:16   0   2.7T  0 disk  
└─sdb1        8:17   0   2.6T  0 part  
sdc           8:32   0   2.7T  0 disk  
sdd           8:48   0   2.7T  0 disk  
sde           8:64   1  14.9G  0 disk  
└─sde1        8:65   1  14.9G  0 part  
nvme1n1     259:0    0 476.9G  0 disk  
├─nvme1n1p1 259:1    0 128.1G  0 part  
│ └─md126     9:126  0   128G  0 raid1 [SWAP]
├─nvme1n1p2 259:2    0 100.1G  0 part  
│ └─md124     9:124  0   100G  0 raid1 /var
├─nvme1n1p3 259:3    0     1G  0 part  
│ └─md125     9:125  0  1023M  0 raid1 /boot
├─nvme1n1p4 259:4    0   601M  0 part  
│ └─md123     9:123  0 600.9M  0 raid1 /boot/efi
└─nvme1n1p5 259:5    0 150.1G  0 part  
  └─md127     9:127  0   150G  0 raid1 /
nvme0n1     259:6    0 476.9G  0 disk  
├─nvme0n1p1 259:7    0 128.1G  0 part  
│ └─md126     9:126  0   128G  0 raid1 [SWAP]
├─nvme0n1p2 259:8    0 100.1G  0 part  
│ └─md124     9:124  0   100G  0 raid1 /var
├─nvme0n1p3 259:9    0     1G  0 part  
│ └─md125     9:125  0  1023M  0 raid1 /boot
├─nvme0n1p4 259:10   0   601M  0 part  
│ └─md123     9:123  0 600.9M  0 raid1 /boot/efi
└─nvme0n1p5 259:11   0 150.1G  0 part  
  └─md127     9:127  0   150G  0 raid1 /

/boot listing:

# ls -ltr /boot
total 258332
drwx------. 3 root root      4096 Jan  1  1970 efi
-rw-------. 1 root root   8876141 Nov 15 12:17 System.map-5.14.0-503.14.1.el9_5.x86_64
-rwxr-xr-x. 1 root root  14457672 Nov 15 12:17 vmlinuz-5.14.0-503.14.1.el9_5.x86_64
-rw-r--r--. 1 root root    226284 Nov 15 12:17 config-5.14.0-503.14.1.el9_5.x86_64
drwx------. 2 root root     16384 Jan 12 22:18 lost+found
drwxr-xr-x. 3 root root      4096 Jan 12 22:25 loader
lrwxrwxrwx. 1 root root        52 Jan 12 22:26 symvers-5.14.0-503.14.1.el9_5.x86_64.gz -> /lib/modules/5.14.0-503.14.1.el9_5.x86_64/symvers.gz
-rwxr-xr-x. 1 root root  14457672 Jan 12 22:27 vmlinuz-0-rescue-xxxxx
-rw-------. 1 root root 159193682 Jan 12 22:28 initramfs-0-rescue-xxxxx.img
drwx------. 3 root root      4096 Jan 12 22:31 grub2
-rw-------. 1 root root  35301772 Jan 12 22:32 initramfs-5.14.0-503.14.1.el9_5.x86_64.img
-rw-------. 1 root root  31976448 Jan 12 22:37 initramfs-5.14.0-503.14.1.el9_5.x86_64kdump.img

…more…:

# cd /boot/grub2/
# ls -ltr
total 16
drwx------. 2 root root 4096 Jan 12 22:25 fonts
-rw-r--r--. 1 root root 1024 Jan 12 22:30 grubenv
-rw-------. 1 root root 7268 Jan 12 22:31 grub.cfg
#
# cat grubenv 
# GRUB Environment Block
# WARNING: Do not edit this file by tools other than grub-editenv!!!
saved_entry=xxxxxxx-5.14.0-503.14.1.el9_5.x86_64
menu_auto_hide=1
boot_success=1
########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################[root@server]#
# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=UUID=xx-xx-xx-xx-xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xx:xx rd.md.uuid=xx:xx:xx:xx rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

this link grub_issue does not address my issue.

Please advice how can I fix my grub.cfg (grubd2-mkconfig runs but makes no change.)

Thank you.

Raj

What’s the issue you’re seeing?

The grub.cfg won’t contain your boot entries. You can find them in /boot/loader/entries. What’s the exact issue you’re having?

Hello Nazunalika,

It runs very fast so I do not see the err it spits on screen.

since I post my message I made then menu appear by changing this setting:

# grub2-editenv - unset menu_auto_hide

I see the menu now and it just stay for 5 seconds. I would like to make it 10 or more…

So is this the new standard? I was thinking entries will appear as “menuentry” in grub.cfg. (That was/is my main issue in this thread.)

Is this the norm from 9.5 onwards?? I did find the entries at /boot/loader/entries/

Thank you.

No. The use of BLS (BootLoader Specification) has been the default since el8, so it is not new to 9.5 and not even to 9.0.


Since 9.3 the grub2-mkconfig command to recreate grub.cfg and touch the BLS entries has been:

grub2-mkconfig --update-bls-cmdline -o /boot/grub2/grub.cfg

Modify GRUB_TIMEOUT in /etc/default/grub and run the grub2-mkconfig.


Your observable issue was that you did not see the GRUB menu during boot.
That is resolved by removal of the menu_auto_hide (which is default).

The issue was not that you had no menu entries. You had them and could boot – just did not see them.