aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/setup.d/40_netboot
diff options
context:
space:
mode:
Diffstat (limited to 'INSTALL/setup.d/40_netboot')
-rw-r--r--INSTALL/setup.d/40_netboot15
1 files changed, 15 insertions, 0 deletions
diff --git a/INSTALL/setup.d/40_netboot b/INSTALL/setup.d/40_netboot
new file mode 100644
index 0000000..05d6f30
--- /dev/null
+++ b/INSTALL/setup.d/40_netboot
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# for network boot through tftp+nbd
+apt-get install -y tftpd-hpa xnbd-server
+
+# adjust config file to have the server point to bitbake images deployment dir
+sed -i -e "s#^\(TFTP_DIRECTORY=\).*\$#\1\"$XDT_BUILD/tmp/deploy/images\"#" /etc/default/tftpd-hpa
+
+# install specific scrips
+mkdir -p /usr/local/bin
+for x in $INSTDIR/tools/scripts_netboot/*; do
+ install --mode=755 $x /usr/local/bin/
+done
+
+