add support for trisquel belanos
[automated-distro-installer] / fai / config / basefiles / mk-basefile
index 591a87836cce9293b5fd47ec9cd38c94efe2e2ed..a61010a59cfe3d1654cff8770b19d5ce2e2312c6 100755 (executable)
 
 # 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_TRISQUEL=http://mirror.fsf.org/trisquel/
 MIRROR_CENTOS=http://mirror.netcologne.de/
 #MIRROR_CENTOS=http://localmirror
 #MIRROR_SLC=http://localmirror
@@ -30,6 +31,7 @@ MIRROR_CENTOS=http://mirror.netcologne.de/
 EXCLUDE_SQUEEZE=isc-dhcp-client,isc-dhcp-common,info,tasksel,tasksel-data
 EXCLUDE_WHEEZY=isc-dhcp-client,isc-dhcp-common,info,tasksel,tasksel-data
 EXCLUDE_JESSIE=isc-dhcp-client,isc-dhcp-common,info,tasksel,tasksel-data
+EXCLUDE_BELENOS=dhcp3-client,dhcp3-common,info
 EXCLUDE_TRUSTY=dhcp3-client,dhcp3-common,info
 EXCLUDE_XENIAL=isc-dhcp-client,isc-dhcp-common,udhcpc,dibbler-client,dhcpcd5,info,tasksel,tasksel-data
 
@@ -188,6 +190,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
@@ -209,6 +221,16 @@ xenial() {
 }
 
 
+belenos() {
+    ln -sf gutsy /usr/share/debootstrap/scripts/belenos
+    local arch=$1
+
+    check
+    debootstrap --arch $arch --exclude=${EXCLUDE_BELENOS} --include=${INCLUDE_DEBIAN} belenos $xtmp ${MIRROR_TRISQUEL}
+    cleanup-deb
+    tarit
+}
+
 unknown() {
 
     echo "Unknown distribution. Aborting."
@@ -267,6 +289,7 @@ case "$target" in
     SLC7_64) slc amd64 7 ;;
     TRUSTY32) trusty i386 ;;
     TRUSTY64) trusty amd64 ;;
+    BELENOS64) belenos amd64 ;;
     XENIAL32) xenial i386 ;;
     XENIAL64) xenial amd64 ;;
     SQUEEZE32) squeeze i386 ;;
@@ -275,6 +298,7 @@ case "$target" in
     WHEEZY64) wheezy amd64 ;;
     JESSIE32) jessie i386 ;;
     JESSIE64) jessie amd64 ;;
+    STRETCH64) stretch amd64 ;;
     *) unknown ;;
 esac