e ./pxe-server $dhcp_arg demohost fai
sleep 2
else
- fai-monitor&
- boot_arg="--cdrom /a/bin/fai-basefiles/autodiscover.iso"
+ killall fai-monitor &>/dev/null ||:
+ fai-monitor &
+ if [[ ! $BASEFILE_DIR ]]; then
+ BASEFILE_DIR=/tmp
+ fi
+ a=$BASEFILE_DIR/autodiscover.iso
+ b=$BASEFILE_DIR/STRETCH64.tar.gz
+ if [[ ! -e $a || $(stat -c %Y $a) -lt $(stat -c %Y $b) ]]; then
+ e s fai-cd -g $(readlink -f grub.cfg.autodiscover) -f -A $BASEFILE_DIR/autodiscover.iso
+ fi
+ boot_arg="--cdrom $BASEFILE_DIR/autodiscover.iso"
e fai-redep
e myfai-chboot default
fi
e sleep 5
done
unset _errcatch_cleanup
-e pxe-server
+e ./pxe-server $dhcp_arg
if is_arch_revm; then
./arch-init-remote $name
fi