coreos-overlay/oem-packet: Remove bond workaround

Now that Packet uses Ignition to configure systemd-networkd units
before systemd-networkd starts, the workaround described in the
below issue is no longer necessary:

https://github.com/coreos/bugs/issues/36
This commit is contained in:
Scott Burns 2017-02-02 23:16:05 -08:00
parent 0ef1b76779
commit 27000b8fa5
3 changed files with 0 additions and 19 deletions

View File

@ -2,22 +2,12 @@
coreos:
units:
- name: oem-reset-interfaces.service
command: start
content: |
[Unit]
Description=Reset the bond.
[Service]
Type=oneshot
ExecStart=/usr/share/oem/bin/reset-interfaces.sh
- name: oem-cloudinit.service
command: restart
runtime: yes
content: |
[Unit]
Description=Cloudinit from Packet metadata
After=oem-reset-interfaces.service
Requires=oem-reset-interfaces.service
[Service]
Type=oneshot

View File

@ -1,8 +0,0 @@
#!/bin/bash
set -e
logger "Hard reset of all network interfaces due to upstream systemd-networkd issue: https://github.com/coreos/bugs/issues/36 ."
for iface in `ls -1 /sys/class/net | egrep -v "(^lo$|^bond)"`; do
ip link set $iface down
done
ip link del bond0
systemctl restart systemd-networkd

View File

@ -22,7 +22,6 @@ src_prepare() {
src_install() {
into "/usr/share/oem"
dobin "${FILESDIR}/phone-home.sh"
dobin "${FILESDIR}/reset-interfaces.sh"
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"