Skip to content

Commit

Permalink
Import static grub config for ignition
Browse files Browse the repository at this point in the history
To be shared by CoreOS/Edge; not installed by default,
but can be installed manually.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Oct 4, 2023
1 parent 18e2675 commit f8002fd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/grub2/grub-static-ignition.cfg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8002fd

Please sign in to comment.