diff options
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 |
