usage() {
cat <<EOF
Usage: ${0##*/} [OPTIONS] HOST
-distro setup full using fai. (assuming we already synced data files to the host)
+"distro setup full" using fai.
+
+Note: relies on other repos and paths specific to Ian's system.
+Note: disables btrbk.timer. If it was active before, it should
+be manual reenabled after completion.
--no-r Don't ssh to host and reboot.
-k ssh to host and kexec, don't use pxe. implies --no-r
##### end command line parsing ########
-
+e ser stop btrbk.timer
if [[ ! $host ]]; then
echo "$0: error: expected 1 arg of hostname"
exit 1
fi
sleep 5
done
+e faiserver-disable
if $error; then
echo "$0: error: timeout"
exit 1
fi
+while [[ $(ser is-active btrbk.service) == active ]]; do
+ sleep 5
+done
+e btrbk-run -t $host
e dsremote $host