From: garciadeblas Date: Tue, 7 Nov 2017 15:49:08 +0000 (+0100) Subject: Start lxdbr0 bridge in VCA start_build before configuring mtu X-Git-Tag: v3.0.0rc16^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=32762293b65637677d4e1236e06bf1a2df0eb930;hp=1423eb66b1081c9c89cdaf163fa5106cb5766abc;p=osm%2Fdevops.git Start lxdbr0 bridge in VCA start_build before configuring mtu Change-Id: Ic8a1608d67c45a162476f89c7a365ef2d3618d46 Signed-off-by: garciadeblas Signed-off-by: Adam Israel --- diff --git a/jenkins/VCA/start_build b/jenkins/VCA/start_build index d6ccfd8c..f2b3c94d 100755 --- a/jenkins/VCA/start_build +++ b/jenkins/VCA/start_build @@ -63,9 +63,14 @@ INFO "Setting lxdbr0 MTU to $DEFAULT_MTU" ifconfig lxdbr0 mtu $DEFAULT_MTU # Make the MTU change persistent between reboots +sed -i '/lxc list/d' /etc/rc.local +sed -i "$ i lxc list > /dev/null" /etc/rc.local sed -i '/ifconfig lxdbr0 mtu/d' /etc/rc.local sed -i "$ i ifconfig lxdbr0 mtu $DEFAULT_MTU" /etc/rc.local +# Enable the rc-local service so our changes get executed upon boot +systemctl enable rc-local.service + INFO "Pre-caching Ubuntu:16.04 image (this may take several minutes)..." # Setup a daily cron to update the cached image