X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai-revm;h=880a91c5e0d10a3bcd6ffb8c96df36f5a9624fa8;hb=15da839e14b07b30de9c3f7559bd17213e4f193d;hp=30f541995fc98e2e43ebf83c4f01cbf0af767e86;hpb=ac4e0089e245c96a388b8fcdd92fc05da3399694;p=automated-distro-installer diff --git a/fai-revm b/fai-revm index 30f5419..880a91c 100755 --- a/fai-revm +++ b/fai-revm @@ -100,8 +100,14 @@ else e ./pxe-server $dhcp_arg demohost fai sleep 2 else - fai-monitor& - boot_arg="--cdrom /a/bin/fai-basefiles/autodiscover.iso" + fai-monitor & + if [[ ! $BASEFILE_DIR ]]; then + BASEFILE_DIR=/tmp + fi + if [[ ! -e $BASEFILE_DIR/autodiscover.iso ]]; then + 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 @@ -158,7 +164,7 @@ while ! timeout -s 9 10 ssh -oBatchMode=yes root@$name /bin/true; do 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