• grub2-2.06-78.el9
    • None
    • None
    • rhel-sst-cs-bootloaders
    • ssg_display
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      grub2-install refuses to work on efi because it creates unsigned binaries, which are incompatible with Secure Boot. Users who want this functionality anyway could have it if they use --force

      request is for RHEL-9, so that is propogates also to clones: https://github.com/hetzneronline/installimage/issues/57

       

      already merged in fedora: https://github.com/rhboot/grub2/pull/135

            [RHEL-20443] request backport of grub2-install on efi if forced patch

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (grub2 bug fix and enhancement update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHBA-2024:9363

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (grub2 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:9363

            Reproduced with grub2-2.06-77.el9

            [root@localhost ~]# grub2-install --recheck --target=x86_64-efi --boot-directory=vda2 --efi-directory=vda1 --directory=/usr/lib
            /grub/x86_64-efi/
            grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.

            Tested with grub2-2.06-91.el9

            [root@localhost ~]# grub2-install --target=x86_64-efi --directory=/usr/lib/grub/x86_64-efi/
            Installing for x86_64-efi platform.
            grub2-install: error: This utility should not be used for EFI platforms because it does not support UEFI Secure Boot. If you re
            ally wish to proceed, invoke the --force option.
            Make sure Secure Boot is disabled before proceeding.
            [root@localhost ~]# grub2-install --target=x86_64-efi --directory=/usr/lib/grub/x86_64-efi/ --force
            Installing for x86_64-efi platform.
            Installation finished. No error reported.

            Marta Lewandowska added a comment - Reproduced with grub2-2.06-77.el9 [root@localhost ~]# grub2-install --recheck --target=x86_64-efi --boot-directory=vda2 --efi-directory=vda1 --directory=/usr/lib /grub/x86_64-efi/ grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot. Tested with grub2-2.06-91.el9 [root@localhost ~]# grub2-install --target=x86_64-efi --directory=/usr/lib/grub/x86_64-efi/ Installing for x86_64-efi platform. grub2-install: error: This utility should not be used for EFI platforms because it does not support UEFI Secure Boot. If you re ally wish to proceed, invoke the --force option. Make sure Secure Boot is disabled before proceeding. [root@localhost ~]# grub2-install --target=x86_64-efi --directory=/usr/lib/grub/x86_64-efi/ --force Installing for x86_64-efi platform. Installation finished. No error reported.

              bootloader-eng-team bootloader -eng-team
              rhn-support-mlewando Marta Lewandowska
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: