What were you trying to do that didn't work?
When the /etc/grub2.cfg symbolic link is broken, the grubby command reports a misleading error:
[root@vm250-161 tmp]# ls -l /etc/grub2.cfg
lrwxrwxrwx. 1 root root 20 Apr 13 2021 /etc/grub2.cfg -> /boot/grub2/grub.cfg
[root@vm250-161 tmp]# unlink /etc/grub2.cfg
[root@vm250-161 tmp]# grubby --default-index
error opening /boot/grub/grub.cfg for read: No such file or directory
Please provide the package NVR for which bug is seen:
- rpm -qf /usr/sbin/grubby
grubby-8.28-26.el7.x86_64Steps to reproduce
# unlink /etc/grub2.cfg
- grubby --default-index
error opening /boot/grub/grub.cfg for read: No such file or directoryExpected results
- grubby --default-index
error opening /boot/grub2/grub.cfg for read: No such file or directory
OR
- grubby --default-index
error opening /etc/grub2.cfg for read: No such file or directoryActual results
- grubby --default-index
error opening /boot/grub/grub.cfg for read: No such file or directory