Skip to content

Commit

Permalink
grub: Support including ignition/greenboot and other
Browse files Browse the repository at this point in the history
This will make it trivial to drop in the other behaviors.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Oct 6, 2023
1 parent c523463 commit 8b88e3f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/grub2/grub-static.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@ function load_video {
fi
}

# tracker: https://github.com/coreos/fedora-coreos-tracker/issues/805
if [ -f $prefix/platform.cfg ]; then
source $prefix/platform.cfg
if [ -f $prefix/ignition.cfg ]; then
source $prefix/ignition.cfg
fi
if [ -f $prefix/greenboot.cfg ]; then
source $prefix/greenboot.cfg
fi
# And two arbitrary other files
if [ -f $prefix/platform01.cfg ]; then
source $prefix/platform01.cfg
fi
if [ -f $prefix/platform02.cfg ]; then
source $prefix/platform02.cfg
fi

if [ x$feature_timeout_style = xy ] ; then
Expand Down

0 comments on commit 8b88e3f

Please sign in to comment.