forked from coreos/ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pairs with coreos/bootupd#543 Basically we want bootupd to take care of installing this. Add the config here (where it more closely arguably belongs) so that it can be optionally installed. My proposal for at least the Fedora packaging of Ignition is that we unconditionally depend on bootupd and install this, because there's no one there using Ignition who doesn't want bootupd.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |