diff --git a/fedora-atomic.ks b/fedora-atomic.ks index eade5b8..26e5353 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -94,12 +94,9 @@ NETWORKING=yes NOZEROCONF=yes EOF -# For cloud images, 'eth0' _is_ the predictable device name, since -# we don't want to be tied to specific virtual (!) hardware -rm -f /etc/udev/rules.d/70* -ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules - -# simple eth0 config, again not hard-coded to the build hardware +# Remove any persistent NIC rules generated by udev +rm -vf /etc/udev/rules.d/*persistent-net*.rules +# And ensure that we will do DHCP on eth0 on startup cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF DEVICE="eth0" BOOTPROTO="dhcp"