Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions src/image-cloud.ks
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# 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 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.
# The DHCP_CLIENT_ID="mac" bit is so that we match what dhclient
# does in the initrd, and the DHCP server gives us the same lease
# if possible. See https://github.com/coreos/fedora-coreos-config/issues/58.
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Ethernet"
PERSISTENT_DHCLIENT="yes"
NM_CONTROLLED="yes"
DHCP_CLIENT_ID="mac"
EOF
%end
bootloader --timeout=1 --append="no_timer_check console=ttyS0,115200n8 console=tty0 rootflags=defaults,prjquota rw $ignition_firstboot"