aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/setup-sbuild.bash
diff options
context:
space:
mode:
Diffstat (limited to 'docker/debian-dev/bootstrap/setup-sbuild.bash')
-rwxr-xr-xdocker/debian-dev/bootstrap/setup-sbuild.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/debian-dev/bootstrap/setup-sbuild.bash b/docker/debian-dev/bootstrap/setup-sbuild.bash
index 30c1af9..cbccdb7 100755
--- a/docker/debian-dev/bootstrap/setup-sbuild.bash
+++ b/docker/debian-dev/bootstrap/setup-sbuild.bash
@@ -6,6 +6,10 @@ if [[ -f /etc/crupest-apt-source ]]; then
CRUPEST_DEB_MIRROR=$(cat /etc/crupest-apt-source)
fi
+if [[ -z "${SBUILD_ARCH}" ]]; then
+ SBUILD_ARCH="amd64"
+fi
+
apt-get install -y sbuild schroot debootstrap
-sbuild-createchroot bullseye /srv/chroot/bullseye-amd64-sbuild ${CRUPEST_DEB_MIRROR}
+sbuild-createchroot --arch=${SBUILD_ARCH} bullseye /srv/chroot/bullseye-${SBUILD_ARCH}-sbuild ${CRUPEST_DEB_MIRROR}