From 7fcf9ae4aa59f6d36a6641d8f19975c0ede9c650 Mon Sep 17 00:00:00 2001 From: Yuriy Kohut Date: Mon, 2 Dec 2024 16:48:37 +0200 Subject: [PATCH] Reload EFI info, boot order has changed as Leapp upgrade efi entry was removed --- .../removeupgradeefientry/libraries/removeupgradeefientry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/system_upgrade/el8toel9/actors/removeupgradeefientry/libraries/removeupgradeefientry.py b/repos/system_upgrade/el8toel9/actors/removeupgradeefientry/libraries/removeupgradeefientry.py index 3ff3ead990..dde1772b51 100644 --- a/repos/system_upgrade/el8toel9/actors/removeupgradeefientry/libraries/removeupgradeefientry.py +++ b/repos/system_upgrade/el8toel9/actors/removeupgradeefientry/libraries/removeupgradeefientry.py @@ -54,6 +54,8 @@ def remove_upgrade_efi_entry(): except CalledProcessError: api.current_logger().warning('Unable to remove Leapp upgrade efi files.') + # Reload EFI info, boot order has changed as Leapp upgrade efi entry was removed + bootloader_info = get_workaround_efi_info() original_boot_number = bootloader_info.original_entry.boot_number run(['/usr/sbin/efibootmgr', '--bootnext', original_boot_number])