Change-Id: Ic8a1608d67c45a162476f89c7a365ef2d3618d46
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Signed-off-by: Adam Israel <adam.israel@canonical.com>
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