##// END OF EJS Templates
using netselect-apt to autoconfigure apt source...
Unknown -
r307:5ae5aba2ff0f
parent child
Show More
@@ -30,12 +30,13 if [ "$BUILD_KERNEL" = false ] ; then
30 30 fi
31 31
32 32 else # BUILD_KERNEL=true
33 # Install APT sources.list
34 install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
35
36 # Use specified APT server and release
37 sed -i "s/\/ftp.debian.org\//\/${APT_SERVER}\//" "${ETC_DIR}/apt/sources.list"
38 sed -i "s/ jessie/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"
33 #autconfigure best apt server to not spam ftp.debian.org
34 rm files/apt/sources.list
35 if [ "$ENABLE_NONFREE" ] ; then
36 netselect-apt --arch "$RELEASE_ARCH" --sources --nonfree --outfile "${ETC_DIR}/apt/sources.list" -d "$RELEASE"
37 else
38 netselect-apt --arch "$RELEASE_ARCH" --sources --nonfree --outfile "${ETC_DIR}/apt/sources.list" -d "$RELEASE"
39 fi
39 40 fi
40 41
41 42 # Allow the installation of non-free Debian packages
@@ -196,6 +196,9 APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debi
196 196 REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo"
197 197 MISSING_PACKAGES=""
198 198
199 #autoselect best apt mirror
200 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} netselect-apt"
201
199 202 # Packages installed for c/c++ build environment in chroot (keep empty)
200 203 COMPILER_PACKAGES=""
201 204
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant