-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out the "net.ifnames" stuff into a separate kickstart, and generate a raw disk image `metal-bios` if specified. Note to really be useful this requires Ignition to load `/boot/config.ign` or so.
- Loading branch information
Showing
5 changed files
with
72 additions
and
43 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
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 @@ | ||
# console, Ignition, and net.ifnames=0 | ||
bootloader --timeout=1 --append="no_timer_check console=ttyS0,115200n8 console=tty0 net.ifnames=0 biosdevname=0 ip=dhcp rd.neednet=1 rw $ignition_firstboot" | ||
|
||
%post --erroronfail | ||
# By default, we do DHCP. Also, due to the above disabling | ||
# of biosdevname/net.ifnames, this uses eth0. | ||
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth0 | ||
DEVICE="eth0" | ||
BOOTPROTO="dhcp" | ||
ONBOOT="yes" | ||
TYPE="Ethernet" | ||
PERSISTENT_DHCLIENT="yes" | ||
NM_CONTROLLED="yes" | ||
EOF | ||
%end |
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,2 @@ | ||
# Base Ignition args | ||
bootloader --append="rw $ignition_firstboot" |
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