During boot process, the system will read the grub config to be able to load the kernel with it associated modules containing into initrd.
Initial RAM disk (initrd or Initramfs) is a RAM filesystem mounted at startup to initialize kernel modules.
Rebuild initrd
# dracut -f
Another example to add multipathing
# dracut --force --add multipath
Regenerating the initramfs
You can read the content of initrd
# lsinitramfs /boot/initrd.img
Uncompress initrd
# mkdir /tmp/initrd # cd /tmp/initrd # cp /boot/initrd.img . # unmkinitramfs initrd.img .
Generate a new grub.cfg on BIOS based server
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generate a new grub.cfg on UEFI based server
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Check the syntax of grub.cfg
# grub2-script-check /boot/grub2/grub.cfg