projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start lxdbr0 bridge in VCA start_build before configuring mtu
[osm/devops.git]
/
jenkins
/
VCA
/
start_build
diff --git
a/jenkins/VCA/start_build
b/jenkins/VCA/start_build
index
d6ccfd8
..
f2b3c94
100755
(executable)
--- 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
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
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
INFO "Pre-caching Ubuntu:16.04 image (this may take several minutes)..."
# Setup a daily cron to update the cached image