forked from oamg/leapp-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(arm,bootloader,efi): patch grub.cfg used for upgrading
Use the grub.cfg bundled within leapp if we detect that system's grub.cfg contains problematic configuration which will not load grubenv of the upgrade BLS entry. We need to ensure that this grubenv is loaded, as without it we cannot guarantee a successful boot into upgrade environment.
- Loading branch information
Showing
4 changed files
with
158 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
repos/system_upgrade/el8toel9/actors/addarmbootloaderworkaround/files/grub2_config_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set timeout=0 | ||
|
||
# Make sure to load EFI/leapp/grubenv and not system's default path | ||
if [ -f ${config_directory}/grubenv ]; then | ||
load_env -f ${config_directory}/grubenv | ||
elif [ -s $prefix/grubenv ]; then | ||
load_env | ||
fi | ||
|
||
# EFI/leapp/grubenv contains our upgrade BLS entry as saved_entry | ||
if [ "${next_entry}" ] ; then | ||
set default="${next_entry}" | ||
set next_entry= | ||
save_env next_entry | ||
set boot_once=true | ||
else | ||
set default="${saved_entry}" | ||
fi | ||
|
||
search --no-floppy --set=root --fs-uuid LEAPP_BOOT_UUID | ||
set boot=${root} | ||
function load_video { | ||
insmod all_video | ||
} | ||
${serial}${terminal_input}${terminal_output} | ||
blscfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters