diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-12-01 00:34:16 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-12-01 00:34:16 +0000 |
| commit | e71f435cc6a4b2c8ab4fda8f52d3d42e96ddee14 (patch) | |
| tree | ae7d0b7026ecb44eee85ac9b132c8583aa11ac76 /build-arm64.sh | |
| parent | 733ad130eec9ed0e5ca26e6be307d59e1a04754d (diff) | |
Diffstat (limited to 'build-arm64.sh')
| -rwxr-xr-x | build-arm64.sh | 13 |
1 files changed, 11 insertions, 2 deletions
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 |
