add support for trisquel belanos
[automated-distro-installer] / fai / config / basefiles / mk-basefile
index 3f539d8b782e44d0f1e489621a92c004652cea8d..a61010a59cfe3d1654cff8770b19d5ce2e2312c6 100755 (executable)
@@ -23,6 +23,7 @@
 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
 
@@ -219,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."
@@ -277,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 ;;