Grub2 Commands: Making Persistent Changes To A Grub 2 Menu
Grub2 Commands: Making Persistent Changes To A Grub 2 Menu
Eg:
~]# grub2-set-default 2
~]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg >> to list the available menu entries on
grub2.cfg
Where console=tty0 is the first virtual terminal and console=ttyS0 is the serial terminal to be used
On BIOS-based machines
~]# grub2-mkconfig -o /boot/grub2/grub.cfg
On UEFI-based machines,
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Enter password:
Confirm password
Important steps: