Skip to content
Snippets Groups Projects
Commit 3f761ada authored by israelad's avatar israelad
Browse files

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: default avatarAdam Israel <adam.israel@canonical.com>
parent 24b74c20
No related branches found
Tags v1.0.0
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment