Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / mk-deb-chroot
index bc54c98c41258cc0ca666562230aaf80b4737b78..81b4a3cb79431214d73af47d8beda07fce447b6a 100755 (executable)
@@ -62,10 +62,13 @@ elif [ -e /etc/arch-release ]; then
     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
@@ -134,7 +137,7 @@ EOF
 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*