iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update hosts, fix fai-cd and wrt
[automated-distro-installer]
/
dsfull
diff --git
a/dsfull
b/dsfull
index 29946f39804b3cfccbc7378fba17656167d207a0..f1371d18ab07f59e43c2192cecec69b4fbef5a5f 100755
(executable)
--- a/
dsfull
+++ b/
dsfull
@@
-59,27
+59,26
@@
host=$1
##### end command line parsing ########
##### 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
if [[ ! $host ]]; then
echo "$0: error: expected 1 arg of hostname"
exit 1
fi
-e() { echo "$@"; "$@"; }
if $kexec; then
if $kexec; then
-
e
fai-redep
-
e
myfai-chboot $host
-
e fai
-kexec $host ||:
+ fai-redep
+ myfai-chboot $host
+
live
-kexec $host ||:
else
cleanup() { pxe-server; }; _errcatch_cleanup=cleanup
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.
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
fi
-
e
pxe-server -a
+ pxe-server -a
unset _errcatch_cleanup
fi
unset _errcatch_cleanup
fi
@@
-91,7
+90,7
@@
for ((i=0; i<240; i++)); do
fi
sleep 5
done
fi
sleep 5
done
-
e
faiserver-disable
+faiserver-disable
if $error; then
echo "$0: error: timeout"
exit 1
if $error; then
echo "$0: error: timeout"
exit 1
@@
-99,6
+98,8
@@
fi
while [[ $(ser is-active btrbk.service) == active ]]; do
sleep 5
done
while [[ $(ser is-active btrbk.service) == active ]]; do
sleep 5
done
-e btrbk-run -t $host
-ssh $host /a/bin/distro-setup/distro-begin
-#e dsremote $host
+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
+dsremote $host