X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=dsfull;h=51ecdda5013c6101e788d5f31383f4b900d4c691;hb=d6df8985152a6c17523cedc3fee62694544eeaf2;hp=a8a2f1ff3611334775bcc365726c580bd201bfbb;hpb=46edfde8e1fbb4121d5d0661946fc419d042543d;p=automated-distro-installer diff --git a/dsfull b/dsfull index a8a2f1f..51ecdda 100755 --- a/dsfull +++ b/dsfull @@ -2,6 +2,9 @@ # Copyright (C) 2016 Ian Kelling # distro setup full using fai. (assuming we already synced data files to the host) +# Usage: dsfull [-r] HOST +# -r for no reboot. + set -eE -o pipefail cleanup() { :; } @@ -23,7 +26,7 @@ fi set -x cleanup() { pxe-server :; } -pxe-server fai $host +pxe-server $host fai if $reboot; then @@ -31,7 +34,7 @@ if $reboot; then ssh $host "touch /tmp/keyscript-off; sudo reboot" ||: & fi -pxe-server -a : +pxe-server -a cleanup() { :; } error=true