From 5f02811bbbf83c509e988818c4e3991e322bdd6e Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 3 Feb 2021 15:28:02 +0000 Subject: [PATCH] Minor fixes in update-juju-lxc-images to get it work in v8.0 Change-Id: If34b5f0196dbc1ce113747f49f3d40857f99b42d Signed-off-by: garciadeblas --- installers/update-juju-lxc-images | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installers/update-juju-lxc-images b/installers/update-juju-lxc-images index 88be1271..18f85c98 100755 --- a/installers/update-juju-lxc-images +++ b/installers/update-juju-lxc-images @@ -98,6 +98,7 @@ function cache() { alias=juju/$series/amd64 lxc delete $container -f || true + lxc image copy ubuntu:$series local: --alias clean-$series lxc launch ubuntu:$series $container sleep 15 # wait for network @@ -121,6 +122,7 @@ function cache() { lxc stop $container lxc image delete $alias || true + lxc image delete clean-$series || true lxc publish $container --alias $alias description="$series juju dev image ($(date +%Y%m%d))" lxc delete $container -f || true -- 2.25.1