From 2dd48601e5e1b52f92661e028d6fe4f1aa42d5c4 Mon Sep 17 00:00:00 2001 From: Alexsander Silva de Souza Date: Mon, 24 Jun 2024 13:56:33 -0300 Subject: [PATCH] fix: reset cloud-init state --- ubuntu/scripts/cleanup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubuntu/scripts/cleanup.sh b/ubuntu/scripts/cleanup.sh index 61e5af41..504d0314 100644 --- a/ubuntu/scripts/cleanup.sh +++ b/ubuntu/scripts/cleanup.sh @@ -20,5 +20,8 @@ # along with this program. If not, see . export DEBIAN_FRONTEND=noninteractive +# Reset cloud-init, so that it can run again when MAAS deploy the image. +cloud-init clean --logs + apt-get autoremove --purge -yq apt-get clean -yq