James Sherwood-Jones' collection of snippets, tips and tutorials.
Adding a grub menu option to reboot to the BIOS / UEFI settings on CentOS
I recently played around with a few Linux distros and ended up keeping CentOS as my daily driver. One thing I missed, however, was having the “System settings” option on the grub menu that would reboot the computer into the BIOS / UEFI options (present in Ubuntu & Debian).
To add this option on CentOS, create the following file and paste in the shell script below (note that 50 is an arbitrary number that determines the order of the grub helper scripts being run).
Then make the script executable:
Once it’s executable, you can see the menu entry that will be added by running grub2-mkconfig. If successful, it will return something similar to the following (providing you’re booting into an EFI install).
If everything looks OK, you can then update your grub config file as follows.