From 7761dd0ff5875acf59879ddfc9c1fd5370eba89b Mon Sep 17 00:00:00 2001 From: Breadway Date: Wed, 17 Jun 2026 09:03:45 +0800 Subject: [PATCH] build-local: make WORK dir overridable (avoid /tmp tmpfs exhaustion) On hermes /tmp is a 16 GB tmpfs; a full xz build can exhaust it mid-run. WORK now honours an env override (matching OUT) so it can be pointed at the NVMe. Co-Authored-By: Claude Opus 4.8 --- build-local.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-local.sh b/build-local.sh index 23f2fea..3e39da8 100755 --- a/build-local.sh +++ b/build-local.sh @@ -14,7 +14,10 @@ set -euo pipefail REPO="$(cd "$(dirname "$0")" && pwd)" -WORK=/tmp/bos-work +# WORK defaults to /tmp, but on hermes /tmp is a 16 GB tmpfs — a full xz build +# (uncompressed rootfs + squashfs + work copies) can exhaust it mid-build. Allow +# pointing it at the NVMe instead: WORK=/home/.../bos-work sudo ./build-local.sh +WORK="${WORK:-/tmp/bos-work}" OUT="${OUT:-$REPO/out}" # Build against a throwaway copy of the profile so the working tree stays clean