X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F50-host-classes;h=624077d3529c45b8b802a7f1c5fc9dca31ec32f7;hp=7b23f85a27d82f735f0521d518a24c2a37b0132d;hb=1d331faf4f315ae3356ceecb648170d3d74473df;hpb=3b848c7ec9f673b8257fcd6f645d82289b027c9c diff --git a/fai/config/class/50-host-classes b/fai/config/class/50-host-classes index 7b23f85..624077d 100755 --- a/fai/config/class/50-host-classes +++ b/fai/config/class/50-host-classes @@ -10,16 +10,30 @@ echo "FAIBASE DEBIAN" case $HOSTNAME in demohost) echo "DESKTOP" ;; - tp|frodo|treetowl|x2) + tp) echo "DESKTOP PARTITION_PROMPT" - # non-portable way to see that we aren't in a pxe boot environment. - if [[ -e /a/bin/fai/fai-wrapper ]]; then - # We check the reverse condition in 51-multi-boot, - # and set what os we are installing, but don't check it - # into git since it changes regularly. - if isdebian-stable; then - echo "STABLE" - fi + # For multi-boot system. + # Check that we aren't in a pxe boot environment. + # There is probably a better way to do this. + # We check the reverse condition in 51-multi-boot, + # and set what os we are installing, but don't check it + # into git since it changes regularly. + # It's shell looks like this: + # if [[ ! -e /a/bin/fai/fai-wrapper ]]; then + # case $HOSTNAME in + # tp) : ;; + # # add more multi-boot hostnames here + # esac + # fi + # + if [[ -e /a/bin/fai/fai-wrapper ]] && isdebian-stable; then + echo "STABLE" + fi + ;; + x2|frodo|treetowl) + echo "NON_FREE" + if [[ -e /a/bin/fai/fai-wrapper ]] && isdebian-stable; then + echo "STABLE STABLE_NON_FREE" fi ;; lj)