Skip to content

Commit

Permalink
delete vm apk_cache, not host
Browse files Browse the repository at this point in the history
  • Loading branch information
hpresnall committed Mar 17, 2024
1 parent edeb3ac commit 89a8c39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alpine-make-vm-image
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,9 @@ if grep -qw "$RESOLVCONF_MARK" etc/resolv.conf 2>/dev/null; then
fi

if [ -n "$apk_cache_dir" ]; then
# remove symlink and dir created by bind mount
rm etc/apk/cache >/dev/null 2>&1
rm $apk_cache_dir > /dev/null 2>&1
rm $mount_dir/$apk_cache_dir > /dev/null 2>&1
else
rm -Rf var/cache/apk/* ||:
fi
Expand Down

0 comments on commit 89a8c39

Please sign in to comment.