Skip to content

Commit 8bd8d07

Browse files
authored
Merge pull request #39 from shuLhan/shulhan-rm-cache
all: remove downloaded packages before building image
2 parents 54bb157 + 94fc022 commit 8bd8d07

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.tar.gz

build-arch-gce

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ EOS
164164
echo '- Cleaning up and finalizing the image.'
165165
> "$mount_dir/etc/machine-id"
166166
rm -- "$mount_dir/var/log/pacman.log"
167+
rm -f "$mount_dir/var/cache/pacman/pkg/*"
167168
umount -- "$mount_dir"
168169
unset mount_dir
169170

0 commit comments

Comments
 (0)