From df1591e1c967181949c71c3834a3f44f41d7731d Mon Sep 17 00:00:00 2001
From: Manawyrm <git@tbspace.de>
Date: Fri, 7 Jul 2023 14:40:15 +0200
Subject: [PATCH] x86: run apt autoremove

---
 x86_skeleton/setup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/x86_skeleton/setup.sh b/x86_skeleton/setup.sh
index 1398500..52fd2a1 100755
--- a/x86_skeleton/setup.sh
+++ b/x86_skeleton/setup.sh
@@ -1,7 +1,10 @@
 #!/bin/bash
 
 apt update
+# make sure we have all updates installed (from the -updates and -security repos)
 APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confold" -f -y dist-upgrade
+# to remove old kernel versions
+apt --purge autoremove
 apt install -y polkitd locales zstd dhcpcd wpasupplicant
 locale-gen en_US.UTF-8