From 17863591b6ab616a0568e2a882224ae031e4c666 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 24 Jan 2017 02:29:24 +0100 Subject: Revert "reproducible Debian: drop check for MTU!=1500, this is appearantly fineā€¦" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ce9d61f53c49f8bcd937fd5add90bce04e1ef84e. --- bin/reproducible_maintenance.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 1f775ecb..4ccb9e0d 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -97,6 +97,13 @@ if ! test -L /run/shm ; then elif [ "$(readlink /run/shm)" != "/dev/shm" ] ; then echo "Warning: /run/shm is a link, but not pointing to /dev/shm on $HOSTNAME, please tell the jenkins admins to fix this." show_fstab_and_mounts +# check for correct MTU +echo "$(date -u) - testing whether the network interfaces MTU is 1500..." +if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then + ip link + echo "$(date -u) - network interfaces MTU != 1500 - this is wrong. => please \`sudo ifconfig eth0 mtu 1500\`" + irc_message debian-reproducible "$HOSTNAME has wrong MTU, please tell the jenkins admins to fix this. (sudo ifconfig eth0 mtu 1500)" + exit 1 fi echo "$(date -u) - updating the schroots and pbuilder now..." -- cgit v1.2.3-70-g09d2