X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=dsfull;h=5cc0fad0a972de334be5db84f5866aba3d5b1a1a;hp=df9c398f2936f8b8f27c6708016982ff13428030;hb=9ac5bbeccb3e969e29b372656bd51352ff31b0b8;hpb=5f680f6bea2faae10ca8e5ccea0d08d18ccc9aa1 diff --git a/dsfull b/dsfull index df9c398..5cc0fad 100755 --- a/dsfull +++ b/dsfull @@ -59,27 +59,26 @@ host=$1 ##### end command line parsing ######## -e 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 - e fai-redep - e myfai-chboot $host - e fai-kexec $host ||: + fai-redep + myfai-chboot $host + fai-kexec $host ||: else cleanup() { pxe-server; }; _errcatch_cleanup=cleanup - e 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 - e 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 -e 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 -e 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