X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=faiserver-setup;h=b9fe68f037cf7c6f5e8821e3d61e0106289de7a3;hp=28e71e370dacc61542200f8ceac48c55c7a27797;hb=527f50b38e4a94a771215131cafe016a97ba83cd;hpb=c47175685b348735b3440e16851dde2cc39b6f3f diff --git a/faiserver-setup b/faiserver-setup index 28e71e3..b9fe68f 100755 --- a/faiserver-setup +++ b/faiserver-setup @@ -30,8 +30,7 @@ that using a hostname does not work. Separate from running this, faiserver needs to be setup in dns to point to whatever host this is run on. -For running on arm, it expects Ian's fai-basefiles repository at -/a/bin/fai-basefiles +It expects $BASEFILE_DIR/STRETCH64.tar.gz to exist. EOF exit $1 @@ -186,7 +185,7 @@ fi if armhf; then cd /srv/fai rm -rf nfsroot - tar Jxf /a/bin/fai-basefiles/basefiles/STRETCH64.tar.xz + tar Jxf $BASEFILE_DIR/STRETCH64.tar.xz # background: Can't build the nfsroot on my arm system now. First, # fai-make-nfsroot won't work out of the box. One idea to make it work # is by installing qemu-user-static, then copying qemu-x86_64-static @@ -242,7 +241,7 @@ EOF else # not armhf # note, this copies the -B arg to # /srv/fai/nfsroot/var/tmp/base.tar.xz - e fai-setup -evf -B /a/bin/fai-basefiles/basefiles/STRETCH64.tar.gz + e fai-setup -evf -B $BASEFILE_DIR/STRETCH64.tar.gz # fai-setup expert mode avoids writing to /var/log/fai/variables # at least config_src is needed for autodiscover $sed '/^FAI_CONFIGDIR|^FAI_CONFIG_SRC|^LOGUSER/d' /var/log/fai/variables