X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;ds=sidebyside;f=fai-kexec;h=dbf003be355563b8188b02240e7bae7f61f681f8;hb=83828fe2683227f4d8ecb2343eff28439741b490;hp=5e10ac2d1000df9eebadd0bdd2661afe5afcf74b;hpb=2f13039525488532756a089b8329ab6ee64a6c17;p=automated-distro-installer diff --git a/fai-kexec b/fai-kexec index 5e10ac2..dbf003b 100755 --- a/fai-kexec +++ b/fai-kexec @@ -14,11 +14,28 @@ # limitations under the License. -# kexec to fai tftp server that pxe would normally point to - set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR + +usage() { + cat <<'EOF' +usage: $0 [-h|--help] [SERVER] +kexec to SERVER (faiserver by default), pxe boot from it's tftp server + +This does what pxe would do, but skipping boot sequence up to and +including the pxe dhcp. + +EOF + exit $1 +} + +case $1 in + -h|--help) usage ;; +esac + + + if [[ $1 ]]; then prefix="ssh root@$1" fi