Skip to content

Commit

Permalink
part: add original and patched grub2.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Jan 16, 2025
1 parent d183370 commit b4b1132
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
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
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

0 comments on commit b4b1132

Please sign in to comment.