grub need to be installed on boot sector of a hard disk. So always use device name like /dev/sda, don’t use partition name like /dev/sda1
[root@server ~]# grub2-install /dev/sda Installing for x86_64-efi platform. Installation finished. No error reported. [root@server ~]#
See grub