From: Adam Israel Date: Wed, 7 Mar 2018 17:55:34 +0000 (-0500) Subject: Fix upgrades in cached lxd image creation X-Git-Tag: v3.0.3~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F5873%2F1;p=osm%2Fdevops.git Fix upgrades in cached lxd image creation A recent update to vmware-tools in trusty caused dpkg to prompt the user to keep their existing configuration or use the new version, which caused the update-lxd-image script to fail. This instructs dpkg to choose which configuration file to keep, defaulting to the existing configuration. Signed-off-by: Adam Israel --- diff --git a/jenkins/VCA/update-lxd-image.sh b/jenkins/VCA/update-lxd-image.sh index 9cc15365..81b210c8 100755 --- a/jenkins/VCA/update-lxd-image.sh +++ b/jenkins/VCA/update-lxd-image.sh @@ -39,7 +39,7 @@ function cache() { lxc exec $container -- bash -c "while [ ! -f /var/lib/cloud/instance/boot-finished ]; do sleep 1; done" lxc exec $container -- apt-get update -y - lxc exec $container -- apt-get upgrade -y + lxc exec $container -- apt-get upgrade -y -o Dpkg::Options::='--force-confold' lxc exec $container -- apt-get install -y $PACKAGES $2 lxc exec $container -- pip3 install --upgrade pip lxc exec $container -- pip3 install --upgrade $PYPI