Skip to content

Commit

Permalink
grub2: source in a console.cfg file if exists
Browse files Browse the repository at this point in the history
This will allow users or distro builders place console settings
here that will get picked up on boot. This was discussed as part
of coreos/fedora-coreos-tracker#1671
  • Loading branch information
dustymabe committed Feb 19, 2024
1 parent 18e730f commit 38b9716
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/grub2/grub-static-pre.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ elif [ -s $prefix/grubenv ]; then
load_env
fi

if [ -f $prefix/console.cfg ]; then
# Source in any GRUB console settings if provided by the user/platform
source $prefix/console.cfg
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
Expand Down

0 comments on commit 38b9716

Please sign in to comment.