From 629918d2b77f85fc00dfc25e1eca3242e8fad938 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 30 Sep 2023 16:29:24 -0400 Subject: [PATCH] grub: Support including ignition/greenboot and other This will make it trivial to drop in the other behaviors. Signed-off-by: Colin Walters --- src/grub2/grub-static.cfg | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/grub2/grub-static.cfg b/src/grub2/grub-static.cfg index 878357d1..8ab5730d 100644 --- a/src/grub2/grub-static.cfg +++ b/src/grub2/grub-static.cfg @@ -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