aboutsummaryrefslogtreecommitdiff
path: root/build-arch-gce
diff options
context:
space:
mode:
authorLorenzo Castelli <lcastelli@gmail.com>2022-06-30 13:44:54 +0000
committerLorenzo Castelli <lcastelli@google.com>2022-06-30 18:17:01 +0200
commit5d2ef52555c6b7d907f70bbf54dfaa4a6acf6fb8 (patch)
treefbdf0d36d4b773438755ca1bd8a3f49e11f2a363 /build-arch-gce
parent94c1b6d49c3f3fda336f8019e9eb94595568a62d (diff)
downloadcompute-archlinux-image-builder-5d2ef52555c6b7d907f70bbf54dfaa4a6acf6fb8.tar.xz
Doesn't remove packages from installation.
Having initial packages around is useful in case an upgrade breaks something in the system, in order to allow rolling back to the previous working version. These are not generally recovarable by the users since mirrors garbage collect them, so keeping them in the image seems a reasonable default.
Diffstat (limited to 'build-arch-gce')
-rwxr-xr-xbuild-arch-gce1
1 files changed, 0 insertions, 1 deletions
diff --git a/build-arch-gce b/build-arch-gce
index c7765f3..5169684 100755
--- a/build-arch-gce
+++ b/build-arch-gce
@@ -178,7 +178,6 @@ EOS
echo '- Cleaning up and finalizing the image.'
> "$mount_dir/etc/machine-id"
rm -- "$mount_dir/var/log/pacman.log"
-rm -f "$mount_dir/var/cache/pacman/pkg/*"
umount --recursive -- "$mount_dir"
unset mount_dir