#360 Remove build network ifcfg files.
Closed 7 years ago by kevin. Opened 7 years ago by jdoss.
Unknown source f28-jdoss-fixes  into  f28

file modified
+6 -2
@@ -15,9 +15,9 @@

  # For a TDL file, I store one here:

  # https://pagure.io/fedora-atomic/raw/master/f/fedora-atomic-rawhide.tdl

  # (Koji generates one internally...what we really want is Koji to publish it statically)

- # 

+ #

  # Once you have imagefactory and imagefactory-plugins installed, run:

- # 

+ #

  #   curl -O https://pagure.io/fedora-atomic/raw/master/f/fedora-atomic-rawhide.tdl

  #   tempfile=$(mktemp --suffix=.ks)

  #   ksflatten -v F22 -c fedora-cloud-base.ks > ${tempfile}
@@ -175,6 +175,10 @@

  rm -f /etc/udev/rules.d/70*

  ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules

  

+ # Remove /etc/sysconfig/network-scripts/ifcfg-en* to ensure it doesn't persist

+ # past the build process

+ rm -f /etc/sysconfig/network-scripts/ifcfg-en*

+ 

  # simple eth0 config, again not hard-coded to the build hardware

  cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF

  DEVICE="eth0"

Thanks, will look at tomorrow.

Sorry, I didn't see this one and made basically the same change ( with also dropping the udev stuff in favor of net.ifnames=0)

Also note that here at least it does fix the network service, but then we hit cloud-init adding a route to the metadata service to the local machine and that fails. Will get that filed as a new bug...

Pull-Request has been closed by kevin

7 years ago
Metadata