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

Leapp upgrade from RHEL8 to RHEL9 failed with error; ad.dnf_package_download: file /boot/efi/EFI/redhat/shim.efi from install of shim-x64-15.8-4.el9_3.x86_64 conflicts with file from package shim-ia32-15.8-4.el8_9.x86_64

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-8.9.0
    • leapp-repository
    • No
    • Important
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

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

       

      leapp upgrade or leapp preupgrade failed with shim package conflict

      What is the impact of this issue to you?

      Important, customer leapp upgrading RHEL8 to RHEL9  (Satellite 6.15 to 6.16) failed with shim package conflict

      Please provide the package NVR for which the bug is seen:

      shim-ia32-15.8-4.el8_9.x86_64
      shim-x64-15.8-4.el9_3.x86_64

      How reproducible is this bug?:  Always

      Steps to reproduce

      • Run leapp (preupgrade or upgrade) on a RHEL8 which has shim packages installed:
      • # rpm -qa|grep shim

      shim-ia32-15.8-4.el8_9.x86_64                             
      shim-x64-15.8-4.el8_9.x86_64

      •   Run "leapp preupgrade --target 9.3"

      Expected results

      Leapp preupgrade should complete without shim package conflict issue

      Actual results

      Failed with error:

      2024-11-07 12:56:36.119 DEBUG PID: 109803 leapp.workflow.Download.dnf_package_download: Error: Transaction test error:
      2024-11-07 12:56:36.121 DEBUG PID: 109803 leapp.workflow.Download.dnf_package_download: file /boot/efi/EFI/redhat/shim.efi from install of shim-x64-15.8-4.el9_3.x86_64 conflicts with file from package shim-ia32-15.8-4.el8_9.x86_64

      Other Informations:

      In RHEL8, file /boot/efi/EFI/redhat/shim.efi is provided by shim-ia32-15.8-4.el8_9.x86_64

      1. rpm -ql shim-ia32
        /boot/efi/EFI/BOOT/BOOTIA32.EFI
        /boot/efi/EFI/BOOT/fbia32.efi
        /boot/efi/EFI/redhat/BOOTIA32.CSV
        /boot/efi/EFI/redhat/mmia32.efi
        /boot/efi/EFI/redhat/shim.efi <==============
        /boot/efi/EFI/redhat/shimia32-redhat.efi
        /boot/efi/EFI/redhat/shimia32.efi
        In RHEL9, file /boot/efi/EFI/redhat/shim.efi is provided by shim-x64-15.8-4.el9_3.x86_64
        [root@sat616 ~]# rpm -ql shim-x64
        /boot/efi/EFI/BOOT/BOOTX64.EFI
        /boot/efi/EFI/BOOT/fbx64.efi
        /boot/efi/EFI/redhat/BOOTX64.CSV
        /boot/efi/EFI/redhat/mmx64.efi
        /boot/efi/EFI/redhat/shim.efi <=============
        /boot/efi/EFI/redhat/shimx64-redhat.efi
        /boot/efi/EFI/redhat/shimx64.efi
        Leapp upgrade should remove RHEL8 packages that is no longer released in RHEL9.

      WORKAROUND:

      Add shim-ia32 to
      /etc/leapp/transaction/to_remove
      Or, remove shim-ia32 before running leapp

              leapp-notifications leapp-notifications
              rhn-support-jalviso Josephine Alviso
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: