X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai-wrapper;h=04625fd2063e4ba3fa3e5a2cfb6f8a0875652b43;hp=45804a5a669f968cef9ae3f63fd164ec963ec8a6;hb=f26c5d66d11fc97c3c6a17a3647dad5d1922fe5a;hpb=43480add5b3ab6f4e407065454bd6be1d1fe1870 diff --git a/fai-wrapper b/fai-wrapper index 45804a5..04625fd 100644 --- a/fai-wrapper +++ b/fai-wrapper @@ -16,6 +16,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # For using some fai commands outside of fai. +# Usually this is sourced from another script. Note this has +# paths specific to Ian's machine. # to set fai classes, export CLASS_CLASSNAME=true ifclass() { local var=${1/#/CLASS_} @@ -35,7 +37,8 @@ eval-fai-classfile() { fai-setclass $(bash -l $file) } export -f ifclass -classes= # used by fcopy +classes=DEFAULT # used by fcopy +export CLASS_DEFAULT=true eval-fai-classfile /a/bin/fai/fai/config/class/50-host-classes export FAI_ROOT=/ export FAI=/a/bin/fai/fai/config