diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index d5d1e71e..105cd990 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -690,13 +690,6 @@ function configure_user_interface { return fi - if [ ! $DEBIAN_REPO ]; then - DEBIAN_REPO='ftp.de.debian.org' - fi - if [ ! $DEBIAN_VERSION ]; then - DEBIAN_VERSION='jessie' - fi - # desktop chroot "$rootdir" apt-get -y install mate-desktop-environment @@ -834,10 +827,18 @@ case "$MACHINE" in ;; esac +if [ ! $DEBIAN_REPO ]; then + DEBIAN_REPO='ftp.de.debian.org' +fi +if [ ! $DEBIAN_VERSION ]; then + DEBIAN_VERSION='jessie' +fi + set_apt_sources $BUILD_MIRROR chroot "$rootdir" apt-get clean chroot "$rootdir" rm -rf /var/lib/apt/lists/* chroot "$rootdir" apt-get clean +set_apt_sources $MIRROR configure_backports configure_contrib_repo chroot "$rootdir" apt-get update @@ -914,9 +915,6 @@ if $use_eatmydata ; then disable_eatmydata_override fi -set_apt_sources $MIRROR -chroot "$rootdir" apt-get update - configure_ssh configure_networking admin_user_sudo