From cdc2996cd3a6b0bf1ba9065ab38318af46643b4e Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Sat, 7 Mar 2026 11:16:56 +0300 Subject: [PATCH] Fix mkimage git conflict: cd /var/tmp before running mkimage.sh mkimage.sh calls git internally. Running it from inside /root/bee causes "outside repository" fatal errors. /var/tmp is outside the git repo. genapkovl is found via ~/.mkimage/ so no copy to /var/tmp needed. Co-Authored-By: Claude Sonnet 4.6 --- iso/builder/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iso/builder/build.sh b/iso/builder/build.sh index cfe6c2b..c32e508 100755 --- a/iso/builder/build.sh +++ b/iso/builder/build.sh @@ -192,9 +192,11 @@ if [ -d /var/tmp/bee-iso-work ]; then -exec rm -rf {} + 2>/dev/null || true fi -# mkinitfs/update-kernel use TMPDIR for initramfs build; tmpfs /tmp is only ~1GB. -# genapkovl-bee.sh is found by mkimage via ~/.mkimage/ (copied above) — no CWD dependency. +# Run from /var/tmp: mkimage.sh calls git internally; running from inside /root/bee causes +# "outside repository" errors. /var/tmp is outside the git repo and has enough scratch space. +# genapkovl-bee.sh is found by mkimage via ~/.mkimage/ — no need to copy it to /var/tmp. export TMPDIR=/var/tmp +cd /var/tmp sh /usr/share/aports/scripts/mkimage.sh \ --tag "v${ALPINE_VERSION}" \ --outdir "${DIST_DIR}" \