-
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
67 additions
and
35 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,20 @@ | ||
# ip=dhcp and rd.neednet=1 enable networking in the initramfs | ||
# We use net.ifnames in cloud environments | ||
# no_timer_check is something we're cargo culting around | ||
# console= args are also for clouds | ||
# The other ones are for Ignition and are also in image-metal.ks; | ||
# change them there first. | ||
bootloader --timeout=1 --append="no_timer_check console=ttyS0,115200n8 console=tty0 net.ifnames=0 biosdevname=0 ip=dhcp rd.neednet=1 rootflags=defaults,prjquota 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,4 @@ | ||
# If you add something here, also update image-cloud.ks. | ||
# prjquota is for quota enablement for containers: https://bugzilla.redhat.com/show_bug.cgi?id=1658386 | ||
# rw and $ignition_firstboot are used by https://github.com/coreos/ignition-dracut/ | ||
bootloader --append="rootflags=defaults,prjquota 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