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 4, 2023
1 parent 0267f88 commit 629918d
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 629918d

Please sign in to comment.