ignition/02_ignition_firstboot
Ignaz Forster 8d1e6666f1 - Update to version 2.6.0
- Update to version 2.5.0
  * Dropped 0003-Disable-resetting-UUID.patch (upstream moved the
    functionality into the CoreOS configuration.
  * Added ignition-enable-network.sh /
    ignition-enable-network.service:
    Implemented ignition-fetch-offline feature to only start
    networking if required
- Update to version 2.4.1
- Update to version 2.4.0

OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=49
2020-08-10 09:28:19 +00:00

25 lines
990 B
Bash

#!/bin/sh
exec tail -n +3 $0
# On read-only systems /boot/writable provides a writeable
# subvolume which also stores the Ignition flag file.
set flagpath="/boot/writable"
# Determine if this is a first boot and set the variable
# to be used later on the kernel command line.
set ignition_firstboot=""
if ! [ -f "${flagpath}/firstboot_happened" ]; then
# default to dhcp networking parameters to be used with ignition
set ignition_network_kcmdline='rd.neednet=1 ip=dhcp'
# source in the `ignition.firstboot` file which could override the
# above $ignition_network_kcmdline with static networking config.
# This override feature is primarily used by coreos-installer to
# persist static networking config provided during install to the
# first boot of the machine.
if [ -e "${flagpath}/ignition.firstboot" ]; then
source "${flagpath}/ignition.firstboot"
fi
set ignition_firstboot="ignition.firstboot $ignition_network_kcmdline"
fi