fix stretch, upgrade from jessie broke
[automated-distro-installer] / fai / config / basefiles / mk-basefile
index 591a87836cce9293b5fd47ec9cd38c94efe2e2ed..3f539d8b782e44d0f1e489621a92c004652cea8d 100755 (executable)
@@ -20,8 +20,8 @@
 
 # Define your local mirros here
 # For the first stage, set the CentOS/SLC mirror in /etc/rinse/rinse.conf
-MIRROR_DEBIAN=http://httpredir.debian.org/debian/
-MIRROR_DEBIAN=http://localmirror/debian/
+MIRROR_DEBIAN=http://http.us.debian.org/debian
+#MIRROR_DEBIAN=http://localmirror/debian/
 MIRROR_UBUNTU=http://mirror.netcologne.de/ubuntu/
 MIRROR_CENTOS=http://mirror.netcologne.de/
 #MIRROR_CENTOS=http://localmirror
@@ -188,6 +188,16 @@ jessie() {
     tarit
 }
 
+stretch() {
+
+    local arch=$1
+
+    check
+    debootstrap --arch $arch --exclude=${EXCLUDE_JESSIE} --include=${INCLUDE_DEBIAN} stretch $xtmp ${MIRROR_DEBIAN}
+    cleanup-deb
+    tarit
+}
+
 trusty() {
 
     local arch=$1
@@ -275,6 +285,7 @@ case "$target" in
     WHEEZY64) wheezy amd64 ;;
     JESSIE32) jessie i386 ;;
     JESSIE64) jessie amd64 ;;
+    STRETCH64) stretch amd64 ;;
     *) unknown ;;
 esac