pacman -S --needed debootstrap schroot
fi
-# Install debian/buster chroot using debootstrap,
+# Debian mirror from where to download packages for the chroot
+CHROOT_DEBIAN_MIRROR=${CHROOT_DEBIAN_MIRROR:-http://ftp.uk.debian.org/debian}
+
+# Install debian/buster chroot using debootstrap,
# any /etc/ config must be done after this point!
-/usr/sbin/debootstrap buster /opt/chroot/$chrootdir \
- http://ftp.uk.debian.org/debian
+/usr/sbin/debootstrap buster /opt/chroot/$chrootdir $CHROOT_DEBIAN_MIRROR
+
echo "$chrootdir" > /opt/chroot/$chrootdir/etc/debian_chroot
# make chroot profile
cat << EOF > /opt/chroot/$chrootdir/etc/apt/preferences.d/99buster-backports
Package: *
Pin: release a=buster-backports
-Pin-Priority: 300
+Pin-Priority: 100
Package: libcurl3-gnutls
Pin: version 7.64*