From 5d987e82b3cbe6b6d53871b0652e291ceb1f7e86 Mon Sep 17 00:00:00 2001 From: Jason Brooks Date: Fri, 14 Oct 2016 10:13:10 -0700 Subject: [PATCH] networking fixes for f25 * removes the extra ens3 ifcfg that seems to be added by dracut at some point (cloud base did this in their ks a year ago in c509863) * adds net.ifnames=0 to the bootloader line, because that seems to be necessary to actually disable consistent device naming * enables the network service see https://pagure.io/atomic-wg/issue/174 --- fedora-atomic.ks | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fedora-atomic.ks b/fedora-atomic.ks index d850739..6c661ab 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -18,7 +18,7 @@ user --name=none firewall --disabled -bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8" +bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0" network --bootproto=dhcp --device=link --activate --onboot=on services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final @@ -121,12 +121,15 @@ dd bs=1M if=/dev/zero of=/var/tmp/zeros || : rm -f /var/tmp/zeros echo "(Don't worry -- that out-of-space error was expected.)" +# For trac ticket https://fedorahosted.org/cloud/ticket/128 +rm -f /etc/sysconfig/network-scripts/ifcfg-ens3 + echo "Adding Developer Mode GRUB2 menu item." /usr/libexec/atomic-devmode/bootentry add -# Disable network service here, as doing it in the services line +# enable network service here, as doing it in the services line # fails due to RHBZ #1369794 -/sbin/chkconfig network off +/sbin/chkconfig network on %end