From f8002fdd7609f7d7a76265e7c8c3637c3c596d50 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 3 Oct 2023 15:09:14 -0400 Subject: [PATCH] Import static grub config for ignition To be shared by CoreOS/Edge; not installed by default, but can be installed manually. Signed-off-by: Colin Walters --- src/grub2/grub-static-ignition.cfg | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/grub2/grub-static-ignition.cfg diff --git a/src/grub2/grub-static-ignition.cfg b/src/grub2/grub-static-ignition.cfg new file mode 100644 index 00000000..9861bed4 --- /dev/null +++ b/src/grub2/grub-static-ignition.cfg @@ -0,0 +1,15 @@ +# Determine if this is a first boot and set the ${ignition_firstboot} variable +# which is used in the kernel command line. +set ignition_firstboot="" +if [ -f "/ignition.firstboot" ]; then + # Default networking parameters to be used with ignition. + set ignition_network_kcmdline='' + + # Source in the `ignition.firstboot` file which could override the + # above $ignition_network_kcmdline with static networking config. + # This override feature is also by coreos-installer to persist static + # networking config provided during install to the first boot of the machine. + source "/ignition.firstboot" + + set ignition_firstboot="ignition.firstboot ${ignition_network_kcmdline}" +fi