Leapp upgrade RHEL8.10 to RHEL9 failed with error, 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

Solution Verified - Updated

Environment

  • Red Hat Linux 8 for 8x6_64
  • Leapp upgrade to RHEL9

Issue

  • Leapp upgrade RHEL8.10 to RHEL9 failed with error,
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

Resolution

  • Update the RHEL8* packages to the latest RHEL8.10.z
    leapp-upgrade-el8toel9 must be updated to the latest release "leapp-upgrade-el8toel9-0.21.0-2.el8_10"

WORKAROUND if RHEL8 packages cannot be updated

  • Add shim-ia32 package to the file /etc/leapp/transaction/to_remove
# cat /etc/leapp/transaction/to_remove
### List of packages (each on new line) to be removed from the upgrade transaction
# Removing initial-setup package to avoid it asking for EULA acceptance during upgrade - OAMG-1531
shim-ia32
  • Alternatively, remove the "shim-i32" package before running leapp:
# yum remove shim-ia32

Root Cause

  • RHEL9 does not support ia32 hence shim-ia32 package is no longer included.
    But shim-ia32 package in RHEL8 provides /boot/efi/EFI/redhat/shim.efi which is also provided by the RHEL9 shim-x64, so a conflict occurs.
  • Latest released "leapp-upgrade-el8toel9-0.21.0-2.el8_10" addressed the shim-ia32 package conflict issue

Diagnostic Steps

  • Check the installed shim package in RHEL8;
# rpm -qa|grep shim*
shim-ia32-15.8-4.el8_9.x86_64      
shim-x64-15.8-4.el8_9.x86_64 

# 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
  • Check the installed shim package on existing RHEL9
# rpm -qa|grep shim
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
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.