raid10 replace docs, various fixes
[automated-distro-installer] / dsfull
diff --git a/dsfull b/dsfull
index df9c398f2936f8b8f27c6708016982ff13428030..5cc0fad0a972de334be5db84f5866aba3d5b1a1a 100755 (executable)
--- a/dsfull
+++ b/dsfull
@@ -59,27 +59,26 @@ host=$1
 
 ##### end command line parsing ########
 
-ser stop btrbk.timer
+ser stop btrbk.timer
 if [[ ! $host ]]; then
     echo "$0: error: expected 1 arg of hostname"
     exit 1
 fi
 
-e() { echo "$@"; "$@"; }
 if $kexec; then
-    fai-redep
-    myfai-chboot $host
-    fai-kexec $host ||:
+    fai-redep
+    myfai-chboot $host
+    fai-kexec $host ||:
 else
     cleanup() { pxe-server; }; _errcatch_cleanup=cleanup
-    pxe-server $host fai
+    pxe-server $host fai
 
     if $reboot; then
         # untested, this caused hang using here doc.
-        ssh $host "touch /tmp/keyscript-off; sudo reboot" ||: &
+        ssh root@$host "touch /tmp/keyscript-off; reboot" ||: &
     fi
 
-    pxe-server -a
+    pxe-server -a
     unset _errcatch_cleanup
 fi
 
@@ -91,7 +90,7 @@ for ((i=0; i<240; i++)); do
     fi
     sleep 5
 done
-faiserver-disable
+faiserver-disable
 if $error; then
     echo "$0: error: timeout"
     exit 1
@@ -99,8 +98,8 @@ fi
 while [[ $(ser is-active btrbk.service) == active ]]; do
     sleep 5
 done
-btrbk-run -t $host
-ssh $host /a/bin/distro-setup/distro-begin
+btrbk-run -t $host
+#ssh $host /a/bin/distro-setup/distro-begin
 # this should be done instead of distro-begin, but
 # keeping it to 2 steps for now
-#e dsremote $host
+dsremote $host