diff options
Diffstat (limited to 'INSTALL/tools')
-rwxr-xr-x | INSTALL/tools/scripts_netboot/run_xnbd_server | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/INSTALL/tools/scripts_netboot/run_xnbd_server b/INSTALL/tools/scripts_netboot/run_xnbd_server index 92dd98c..7da5fac 100755 --- a/INSTALL/tools/scripts_netboot/run_xnbd_server +++ b/INSTALL/tools/scripts_netboot/run_xnbd_server @@ -21,5 +21,14 @@ echo "Using MACHINE=$MACHINE IMAGE=$IMAGE" REALIMG=$(realpath $IMAGE) [[ ! -f ${REALIMG}.bak ]] && cp -v ${REALIMG} ${REALIMG}.bak +cat <<EOF | sudo tee /etc/default/tftpd-hpa &>/dev/null +# /etc/default/tftpd-hpa + +TFTP_USERNAME="tftp" +TFTP_DIRECTORY="/xdt/build/$MACHINE/tmp/deploy/images" +TFTP_ADDRESS="0.0.0.0:69" +TFTP_OPTIONS="--secure" +EOF + sudo systemctl restart tftpd-hpa sudo xnbd-server --target --lport 10809 $IMAGE |