From a17833698ddeaa1e860ce1d6cf896c4a5c84961b Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 12 May 2024 19:36:31 +0200 Subject: [PATCH] bundles/apt: run autoremove first, then clean cached packages --- bundles/apt/files/do-unattended-upgrades | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/apt/files/do-unattended-upgrades b/bundles/apt/files/do-unattended-upgrades index 5eb8adf..3ed0166 100644 --- a/bundles/apt/files/do-unattended-upgrades +++ b/bundles/apt/files/do-unattended-upgrades @@ -6,10 +6,10 @@ apt-get update DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold dist-upgrade -DEBIAN_FRONTEND=noninteractive apt-get -y -q autoclean - DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove +DEBIAN_FRONTEND=noninteractive apt-get -y -q clean + % if clean_old_kernels: existing=$(dpkg --get-selections | grep -E '^linux-(image|headers)-[0-9]' || true)