-x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
+readonly this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"
+script_dir="${this_file%/*}"
+# shellcheck source=./bash-trace
+source "${script_dir}/bash-trace"
+cd $script_dir
+PATH="$PATH:$PWD"
Without TYPE, disable server and fai server. In that case, HOST is only
needed for fsf office network.
Without TYPE, disable server and fai server. In that case, HOST is only
needed for fsf office network.
-HOST A hostname known to the dhcp server, or default for all.
+HOST Only do dhcp pxe for HOST. The hostname must be known to the dhcp
+ server to target its mac. Use "default" for all hosts.
+ Required in fsf office environment.
+
TYPE One of arch, parabola, plain, fai.
-a Don't setup pxe, just Wait for 2 dhcp acks, then disable the pxe
TYPE One of arch, parabola, plain, fai.
-a Don't setup pxe, just Wait for 2 dhcp acks, then disable the pxe
after the 2nd. I can't remember exactly why this caused a
problem, but I'm hoping the sleep will take care of it.
-d Don't alter dhcp config. Only make sense for fai type, and on network
after the 2nd. I can't remember exactly why this caused a
problem, but I'm hoping the sleep will take care of it.
-d Don't alter dhcp config. Only make sense for fai type, and on network
-r) redep=false; shift ;;
-S) chboot_args+=(-S); shift ;;
-w) wait=true; set=true; shift ;;
-r) redep=false; shift ;;
-S) chboot_args+=(-S); shift ;;
-w) wait=true; set=true; shift ;;
else
# This will fail if faiserver is not setup, so ignore any
# failure and don't bother us about it.
else
# This will fail if faiserver is not setup, so ignore any
# failure and don't bother us about it.