Commit bd0f719
committed
rootfs: route mmdebstrap through APT_PROXY_ADDR when set
mmdebstrap only used the apt cache via acng's URL-prefix, driven by
MANAGE_ACNG; it ignored APT_PROXY_ADDR entirely. So on CI runners that
export only APT_PROXY_ADDR (without MANAGE_ACNG), the base-system
bootstrap downloaded direct from the mirror, uncached, while the later
chroot apt-get phase (runners.sh) correctly went through the proxy.
When APT_PROXY_ADDR is set and MANAGE_ACNG is no/unset, pass it to
mmdebstrap as --aptopt='Acquire::http::Proxy "http://<addr>"' — the
idiomatic proxy the existing FIXME hints at, and the same proxy the
chroot phase uses. Treating it as a real proxy (not a URL-prefix) keeps
it consistent with runners.sh and works for non-acng proxies too. The
MANAGE_ACNG=yes / URL paths are untouched.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent 0d7d657 commit bd0f719
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
| |||
0 commit comments