From 89a8c39b742404ca051869094e95b8c022cf4abc Mon Sep 17 00:00:00 2001 From: Hunter Presnall Date: Sun, 17 Mar 2024 12:32:42 -0400 Subject: [PATCH] delete vm apk_cache, not host --- alpine-make-vm-image | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index 0aca8e7..0177363 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -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