Merge "Use correct Ubuntu distro url on non-x86 arches"
This commit is contained in:
commit
f128d08cf0
@ -5,4 +5,13 @@ export DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main,restricted,universe}
|
|||||||
if [ -n "${DIB_UBUNTU_DISTRIBUTION_MIRROR:-}" ]; then
|
if [ -n "${DIB_UBUNTU_DISTRIBUTION_MIRROR:-}" ]; then
|
||||||
DIB_DISTRIBUTION_MIRROR=$DIB_UBUNTU_DISTRIBUTION_MIRROR
|
DIB_DISTRIBUTION_MIRROR=$DIB_UBUNTU_DISTRIBUTION_MIRROR
|
||||||
fi
|
fi
|
||||||
export DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-http://archive.ubuntu.com/ubuntu}
|
|
||||||
|
# There are two default distro mirrors depending on architecture
|
||||||
|
ARCH=${ARCH:-}
|
||||||
|
if [[ "arm64 armhf powerpc ppc64el s390x" =~ "$ARCH" ]]; then
|
||||||
|
default_ubuntu_mirror=http://ports.ubuntu.com/ubuntu-ports
|
||||||
|
else
|
||||||
|
default_ubuntu_mirror=http://archive.ubuntu.com/ubuntu
|
||||||
|
fi
|
||||||
|
|
||||||
|
export DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-$default_ubuntu_mirror}
|
||||||
|
Loading…
Reference in New Issue
Block a user