From e71f435cc6a4b2c8ab4fda8f52d3d42e96ddee14 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 1 Dec 2026 00:34:16 +0000 Subject: Tidy up apt cache directives, totally clean live-build environment --- build-arm64.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'build-arm64.sh') diff --git a/build-arm64.sh b/build-arm64.sh index 0a47a20..5bceccb 100755 --- a/build-arm64.sh +++ b/build-arm64.sh @@ -46,8 +46,17 @@ else log_step "arm64: no local image; preparing pi-gen" ensure_pi_gen >> "$LOGFILE" 2>&1 - # ---- RUN YOUR PI-GEN BUILD HERE ---- - # Adjust this to your actual invocation + # Discover the local APT proxy unless explicitly supplied. + if [ -z "${APT_PROXY+x}" ]; then + APT_PROXY="" + if command -v auto-apt-proxy >/dev/null 2>&1; then + APT_PROXY="$(auto-apt-proxy)" || APT_PROXY="" + fi + fi + + [ "$APT_PROXY" != "DIRECT" ] || APT_PROXY="" + + log_step "arm64: apt proxy: ${APT_PROXY:-Direct connection}" log_step "arm64: running pi-gen build" pushd "$PI_GEN_DIR" >/dev/null -- cgit v1.2.3