debian-minimal buster support
Due to the referenced bug, many versions of debootstrap can't bring up a buster environment. Unfortunately, these include versions we use to do this on Xenial/Bionic nodes. Also, there isn't backports or security updates, so elide these for now. I did get a working build (I haven't gone so far as a full boot+glean) with this, at least. Change-Id: If2420e92cb728ab6e91b0d70547da4483679b391 Paritial-Bug: #1822927
This commit is contained in:
parent
36b4bc87f9
commit
105d201e1f
@ -16,7 +16,9 @@ updates:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-updates ${DIB_DEBIAN_COMPO
|
||||
security:deb http://security.debian.org/ ${DIB_RELEASE}/updates ${DIB_DEBIAN_COMPONENTS_WS}
|
||||
"
|
||||
|
||||
if [ "${DIB_RELEASE}" = "testing" -o "${DIB_RELEASE}" = "unstable" ]; then
|
||||
# NOTE(ianw): 2019-04 -- remove buster from here when released and it
|
||||
# has security/backports.
|
||||
if [ "${DIB_RELEASE}" = "testing" -o "${DIB_RELEASE}" = "unstable" -o "${DIB_RELEASE}" = "buster" ]; then
|
||||
DIB_APT_SOURCES_CONF_DEFAULT="default:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE} ${DIB_DEBIAN_COMPONENTS_WS}"
|
||||
fi
|
||||
|
||||
|
@ -36,6 +36,13 @@ no_proxy=${no_proxy:-}
|
||||
|
||||
DEBOOTSTRAP_QEMU=""
|
||||
|
||||
_debootstrap_version=$(debootstrap --version)
|
||||
# could be like "debootstrap 1.0.114~bpo16.04+1"
|
||||
_debootstrap_version=${_debootstrap_version:16:3}
|
||||
if [[ "${DIB_RELEASE}" == "buster" && "${_debootstrap_version}" -lt 105 ]]; then
|
||||
die "Unable to build buster with this debootstrap; see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901977"
|
||||
fi
|
||||
|
||||
if [ -n "$DIB_OFFLINE" -o -n "${DIB_DEBIAN_USE_DEBOOTSTRAP_CACHE:-}" ] && [ -f $DEBOOTSTRAP_TARBALL ] ; then
|
||||
echo $DEBOOTSTRAP_TARBALL found in cache. Using.
|
||||
sudo tar -C $TARGET_ROOT --numeric-owner -xzf $DEBOOTSTRAP_TARBALL
|
||||
|
Loading…
Reference in New Issue
Block a user