X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F50-host-classes;h=ed1d3522a32f2822fd629a8ca650da895215ed65;hp=356b642db16322e285fbac5841483ba89b00f25b;hb=0d7f79362d601b278236cd1c533c7333e342b54a;hpb=15da839e14b07b30de9c3f7559bd17213e4f193d diff --git a/fai/config/class/50-host-classes b/fai/config/class/50-host-classes index 356b642..ed1d352 100755 --- a/fai/config/class/50-host-classes +++ b/fai/config/class/50-host-classes @@ -66,13 +66,17 @@ # RAID0: Use raid 0 even if there are >= 4 disks with boot partititions. # # -# Code in 51-multi-boot, with reasonable combinations of above -# uncommented for easier editing, and runs as a noop until -# we replace _ with host names. -if [[ ! -e /a/bin/fai/fai-wrapper ]]; then + +###### begin Template for 51-multi-boot ###### +# +# It has reasonable combinations of above classes. +# It's a noop until we replace _ with host names. + +#!/bin/bash +if [[ ! -e /a/bin/fai/fai-wrapper || $FAI_ACTION == dirinstall ]]; then case $HOSTNAME in # stretch based minimal recovery / bootstraping os: - _) echo DEBIAN STRETCH64 VOL_STRETCH_BOOTSTRAP STRETCH_NONFREE ;; + _) echo DEBIAN STRETCH64 VOL_STRETCH_BOOTSTRAP STRETCH_FREE ;; # flidas _) echo UBUNTU FLIDAS64 VOL_FLIDAS FLIDAS ;; # stretch @@ -85,6 +89,7 @@ if [[ ! -e /a/bin/fai/fai-wrapper ]]; then _) echo UBUNTU XENIAL64 VOL_XENIAL XENIAL_FREE ;; esac fi +###### end Template for 51-multi-boot ###### if [[ -e /a/bin/fai/fai-wrapper ]]; then source /a/bin/distro-functions/src/identify-distros