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
add http server support for maru, small bug fixes
[automated-distro-installer]
/
dsfull
diff --git
a/dsfull
b/dsfull
index 06af7f8f68e2ac0cd0f5fb768e83fcaf93dde284..40c933ca9c255f760aa7989f8193d8bbda85d8f3 100755
(executable)
--- a/
dsfull
+++ b/
dsfull
@@
-26,7
+26,11
@@
fi
usage() {
cat <<EOF
Usage: ${0##*/} [OPTIONS] HOST
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
--no-r Don't ssh to host and reboot.
-k ssh to host and kexec, don't use pxe. implies --no-r
@@
-56,7
+60,7
@@
host=$1
##### end command line parsing ########
##### end command line parsing ########
-
+e ser stop btrbk.timer
if [[ ! $host ]]; then
echo "$0: error: expected 1 arg of hostname"
exit 1
if [[ ! $host ]]; then
echo "$0: error: expected 1 arg of hostname"
exit 1
@@
-88,8
+92,13
@@
for ((i=0; i<240; i++)); do
fi
sleep 5
done
fi
sleep 5
done
+e faiserver-disable
if $error; then
echo "$0: error: timeout"
exit 1
fi
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
e dsremote $host