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

grub2-common fails to move grub.cfg from EFI partition to /boot

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • rhel-9.4
    • grub2
    • None
    • None
    • Important
    • rhel-bootloader
    • ssg_display
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

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

      The new release of grub2-common-2.06-80.el9_4.noarch breaks leapp upgrades from RHEL8 to RHEL9 on UEFI: after the upgrade occurs, the next reboot (on RHEL9 kernel) fails at "grub>" prompt.

      The reason for this is grub2-common-2.06-80.el9_4.noarch doesn't move /boot/efi/EFI/redhat/grub.cfg to /boot/grub2/grub.cfg anymore but just replaces it with the stub:

      # rpm -q --scripts -p ./grub2-common-2.06-80.el9_4.noarch.rpm 
      posttrans scriptlet (using /bin/sh):
      [...]
      mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
      

      Whereas with older release:

      # rpm -q --scripts -p ./grub2-common-2.06-77.el9.noarch.rpm 
      posttrans scriptlet (using /bin/sh):
      [...]
      cp -a ${EFI_HOME}/grub.cfg ${EFI_HOME}/grub.cfg.rpmsave
      cp -a ${EFI_HOME}/grub.cfg ${GRUB_HOME}/
      mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
      

      Please provide the package NVR for which bug is seen:

      grub2-common-2.06-80.el9_4.noarch

      How reproducible:

      Always

      Steps to reproduce

      1. Upgrade a UEFI system in RHEL8 to RHEL9

      Expected results

      Boots fine on RHEL9

      Actual results

      Stops at "grub>" prompt

              bootloader-eng-team bootloader -eng-team
              rhn-support-rmetrich Renaud Métrich
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: