Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-20478

The grubby command reports misleading error when /etc/grub2.cfg symbolic link is broken.

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • rhel-7.9
    • grubby
    • None
    • None
    • rhel-sst-desktop-firmware-bootloaders
    • ssg_display
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      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:

      1. rpm -qf /usr/sbin/grubby
        grubby-8.28-26.el7.x86_64

        Steps to reproduce

        # unlink /etc/grub2.cfg

      2. grubby --default-index
        error opening /boot/grub/grub.cfg for read: No such file or directory

        Expected results

      1. grubby --default-index

      error opening /boot/grub2/grub.cfg for read: No such file or directory

      OR

      1. grubby --default-index
        error opening /etc/grub2.cfg for read: No such file or directory

        Actual results

      1. grubby --default-index
        error opening /boot/grub/grub.cfg for read: No such file or directory

              bootloader-eng-team bootloader -eng-team
              rhn-support-mkenjale Mahesh Kenjale
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: