to get two grub menu entries at boot, those are defined in (Redhat for example) /boot/efi/EFI/redhat/grub.cfg
in your grub.cfg
you will see menuentry {...}
where the open & close curly braces are separated by around 15 lines. But each menuentry corresponds to what you see in the grub boot menu at boot time. They normally correspond to the last 5 or so kernel versions.
Simply edit this file and clone your menu entry of interest then modify the kernel options you wish, and adjust the menu entry title accordingly so you can pick it when the grub boot menu show up.
Like was said for the GRUB_DISABLE_OS_PROBER="true"
that you put in /etc/default/grub
then when you run grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
(on redhat for example) then that /boot/efi/EFI/redhat/grub.cfg
is modified and that's where everything happens. Don't run grub2-mkconfig
after manually editing the /boot/efi/.../grub.cfg
file otherwise you'll undo your custom menu entry. I'm not a grub2 expert, I know just enough to be dangerous and kinda point you to the correct location. Is there a better way to manage grub menu entries, like a high level elegant way like what /etc/default/grub
is I don't know I've never researched enough. These may help:
Looking for the right way to rename the GRUB boot entries
https://askubuntu.com/questions/81660/how-can-i-edit-my-grub-bootloader-entries-hide-rename-remove
and it would be the linuxefi line from a given menu entry, such as:
linuxefi /vmlinuz-3.10.0-1160.45.1.el7.x86_64 root=UUID=800e924a-a869-4152-9503-9d9cfecbd16e ro verbose fips=1 boot=UUID=4f3da85a-71a9-4f6e-bc5f-dfd23a880b08 modprobe.blacklist=nouveau nouveau.modeset=0
my /etc/default/grub
has exactly GRUB_CMDLINE_LINUX="verbose fips=1 boot=UUID=4f3da85a-71a9-4f6e-bc5f-dfd23a880b08 modprobe.blacklist=nouveau nouveau.modeset=0"
so just modify those corresponding parameters.
/etc/default/grub
):GRUB_DISABLE_OS_PROBER=true
. – ajgringo619 Jan 27 '22 at 21:31