X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fbasefiles%2Fmk-basefile;h=a61010a59cfe3d1654cff8770b19d5ce2e2312c6;hb=83828fe2683227f4d8ecb2343eff28439741b490;hp=591a87836cce9293b5fd47ec9cd38c94efe2e2ed;hpb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3;p=automated-distro-installer diff --git a/fai/config/basefiles/mk-basefile b/fai/config/basefiles/mk-basefile index 591a878..a61010a 100755 --- a/fai/config/basefiles/mk-basefile +++ b/fai/config/basefiles/mk-basefile @@ -20,9 +20,10 @@ # 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