Skip to content

Commit 38b9716

Browse files
committed
grub2: source in a console.cfg file if exists
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
1 parent 18e730f commit 38b9716

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/grub2/grub-static-pre.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ elif [ -s $prefix/grubenv ]; then
3838
load_env
3939
fi
4040

41+
if [ -f $prefix/console.cfg ]; then
42+
# Source in any GRUB console settings if provided by the user/platform
43+
source $prefix/console.cfg
44+
fi
45+
4146
if [ x"${feature_menuentry_id}" = xy ]; then
4247
menuentry_id_option="--id"
4348
else

0 commit comments

Comments
 (0)