From 836c098044ee2e7799b6b868b72e9a7f5562d8fe Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Thu, 5 Mar 2026 16:21:43 +0300 Subject: [PATCH] perf: also cache kernel modloop between builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kernel_* workdir sections were being deleted alongside other non-apks dirs. Now both apks_* and kernel_* are preserved — kernel modloop squashfs won't be rebuilt unless the kernel version changes. Co-Authored-By: Claude Sonnet 4.6 --- iso/builder/build-debug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iso/builder/build-debug.sh b/iso/builder/build-debug.sh index 6db3317..bf2f9b0 100644 --- a/iso/builder/build-debug.sh +++ b/iso/builder/build-debug.sh @@ -114,7 +114,7 @@ export BEE_OVERLAY_DIR="${OVERLAY_DIR}" # mkimage stores each section in a hash-named subdir; apks_* dirs contain downloaded packages. if [ -d /var/tmp/bee-iso-work ]; then find /var/tmp/bee-iso-work -maxdepth 1 -mindepth 1 \ - -not -name 'apks_*' -exec rm -rf {} + 2>/dev/null || true + -not -name 'apks_*' -not -name 'kernel_*' -exec rm -rf {} + 2>/dev/null || true fi # Run from /var/tmp to avoid git repo context conflicts and to ensure enough scratch space.