From 68b24dfd08a04102bdb9900a155101351767bb88 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 8 Aug 2024 22:29:57 +0200 Subject: [PATCH] Moar cleanup, moaaar --- image_builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_builder b/image_builder index 6b51f49..df97917 100755 --- a/image_builder +++ b/image_builder @@ -132,7 +132,7 @@ function rebuild_build_and_lint() $IN_CONTAINER /bin/bash -c "rm -rf /usr/share/locale" $IN_CONTAINER /bin/bash -c "rm -rf /usr/share/man" $IN_CONTAINER /bin/bash -c "rm -rf /var/lib/apt/lists/*" - $IN_CONTAINER /bin/bash -c "apt remove vim --purge || true" + $IN_CONTAINER /bin/bash -c "apt remove vim --purge --autoremove || true" # Disable apt annoyances $IN_CONTAINER systemctl -q disable apt-daily.timer --now @@ -220,7 +220,7 @@ function rebuild() $IN_CONTAINER /bin/bash -c "rm -rf /usr/share/locale" $IN_CONTAINER /bin/bash -c "rm -rf /usr/share/man" $IN_CONTAINER /bin/bash -c "rm -rf /var/lib/apt/lists/*" - $IN_CONTAINER /bin/bash -c "apt remove vim --purge || true" + $IN_CONTAINER /bin/bash -c "apt remove vim --purge --autoremove || true" # Disable services that are useless in the vast majority of cases to try to improve perfs $IN_CONTAINER systemctl -q disable rspamd --now || true