Working with GRUB, the bootloader, and initrd system images
Once the pre-boot execution is completed, the system will be running the GRUB bootloader.
GRUB has the mission to load the main file of an operating system, the kernel, pass parameters and options to it, and load the initial RAM disk, also known as initrd.
GRUB can be installed by using the grub2-install
command. We will need to know which disk device will be used to boot, in this case, /dev/vda
:
[root@rhel8 ~]# grub2-install /dev/vda Installing for i386-pc platform. Installation finished. No error reported.
Important note
You should point grub-install
to the disk you will use to boot the system, the same one that you configured in the BIOS/UEFI to boot from.
This is intended to be used to manually rebuild a system or to fix a broken boot.
GRUB files are stored in /boot/grub2
. The main configuration file is /boot/grub2/grub.cfg
; however, if you take a close look at this file you will see the following...