-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part: add original and patched grub2.cfg
- Loading branch information
Michal Hecko
committed
Jan 16, 2025
1 parent
d183370
commit b4b1132
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
repos/system_upgrade/el8toel9/actors/addarmbootloaderworkaround/files/original_grub2.cfg
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,25 @@ | ||
set timeout=0 | ||
|
||
# load the grubenv file | ||
load_env | ||
|
||
# selection of the next boot entry via variables 'next_entry' and | ||
# `saved_entry` present in the 'grubenv' file. Both variables are | ||
# set by grub tools, like grub2-reboot, grub2-set-default | ||
|
||
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 50cc8d0c-6cae-4993-aa38-5b7209dce8ce | ||
set boot=${root} | ||
function load_video { | ||
insmod all_video | ||
} | ||
${serial}${terminal_input}${terminal_output} | ||
blscfg |
30 changes: 30 additions & 0 deletions
30
repos/system_upgrade/el8toel9/actors/addarmbootloaderworkaround/files/patched_grub2.cfg
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,30 @@ | ||
set timeout=0 | ||
|
||
# <--- Introduced by leapp | ||
if [ -f ${config_directory}/grubenv ]; then | ||
load_env -f ${config_directory}/grubenv | ||
elif [ -s $prefix/grubenv ]; then | ||
load_env | ||
fi | ||
# -----> | ||
|
||
# selection of the next boot entry via variables 'next_entry' and | ||
# `saved_entry` present in the 'grubenv' file. Both variables are | ||
# set by grub tools, like grub2-reboot, grub2-set-default | ||
|
||
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 50cc8d0c-6cae-4993-aa38-5b7209dce8ce | ||
set boot=${root} | ||
function load_video { | ||
insmod all_video | ||
} | ||
${serial}${terminal_input}${terminal_output} | ||
blscfg |