From cf0d51a93ee66ca77a41b8779340803f070d2e21 Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Thu, 7 Nov 2024 15:06:09 +0100 Subject: [PATCH] cleanup++ --- mkosi.finalize.chroot | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mkosi.finalize.chroot b/mkosi.finalize.chroot index 2e09afb..cf292dd 100755 --- a/mkosi.finalize.chroot +++ b/mkosi.finalize.chroot @@ -21,7 +21,8 @@ fi # De-initialize pacman rm -rf \ /etc/pacman.d/gnupg \ - /var/cache/pacman + /var/cache/pacman \ + /var/lib/pacman # Remove all excess things we don't want in the final image @@ -77,3 +78,10 @@ rm -rf \ ## Do not be verbose here, we'd blow right through the log limit. rm -rf \ /usr/share/doc/ + +## /boot is not necessary. We've already created our initrd. +# shellcheck disable=SC2114 +rm -rf /boot + +## Not sure where this comes from, but it's not useful. +rm -rf /.cache