[Qa-jenkins-dev] Bug#866054: reproducible: Fix rc.local to only display eth0 link status when eth0 is present

Vagrant Cascadian vagrant at debian.org
Tue Jun 27 00:14:11 UTC 2017


Package: jenkins.debian.org
Tags: patch
Severity: normal

Only display the link status when eth0 is present, otherwise rc.local
fails to start up on boot when eth0 is missing.

Patch available in the "rc-local-eth0" branch:

  https://anonscm.debian.org/cgit/users/vagrant/jenkins.debian.net.git/


A partial patch, only showing the changes on one machine:

diff --git a/hosts/bbx15-armhf-rb/etc/rc.local b/hosts/bbx15-armhf-rb/etc/rc.local
index 95f5f352..aa6bfefc 100755
--- a/hosts/bbx15-armhf-rb/etc/rc.local
+++ b/hosts/bbx15-armhf-rb/etc/rc.local
@@ -47,8 +47,8 @@ fixup_mtu() {
 		if [ -z "$(ip link show eth0 | grep 'eth0:' | grep 'mtu 1500 ' || true)" ] ; then
 			ip link set dev eth0 mtu 1500
 		fi
+		ip link show eth0
 	fi
-	ip link show eth0
 }
 
 #


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/qa-jenkins-dev/attachments/20170626/2121bedf/attachment.sig>


More information about the Qa-jenkins-dev mailing list