459 bytes added
, 06:12, 19 August 2022
on centos 7 might rather be something like this
==no efi==
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig /dev/sda
==efi==
first make sure the efi partition is mounted on /boot/efi
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig /dev/sda
last command could be done on every member of raid.
NB if you need to rebuild the initramfs
dracut -f /boot/initramfs-3.10.0-693.el7.x86_64.img $(uname -r)
check the content
lsinitrd -k $(uname -r)