RHEL 9 hidden grub menu

For anyone taking RHCSA9 exam soon, this might be helpful.

On newly installed Rhel9.3 virtual machines, the grub2 boot menu gets hidden after successful boots.

This makes test exam tasks more difficult that wants you to reset root passwords, by going to emergency mode and remounting /sysroot rw.

This can be undone by unsetting the menu_auto_hide grub2 option with grub2-editenv, such as:

[user@hostname ~]$ sudo grub2-editenv list
saved_entry=841c0cb68442436a89b4246c45e8c3a0-5.14.0-362.8.1.el9_3.x86_64
menu_auto_hide=1
boot_success=0
boot_indeterminate=0
[user@hostname ~]$ sudo grub2-editenv - unset menu_auto_hide
[user@hostname ~]$ sudo grub2-editenv list
saved_entry=841c0cb68442436a89b4246c45e8c3a0-5.14.0-362.8.1.el9_3.x86_64
boot_success=0
boot_indeterminate=0

links

social