summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts/setup.sh
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2019-06-17 09:24:52 -0700
committerGitHub <noreply@github.com>2019-06-17 09:24:52 -0700
commitb9e4d31719373b52c7113d0e8a960332fd8ef8c6 (patch)
tree46b78a70a9c4c1f2a98b25fe53eb676f11cd700d /lava-slave/scripts/setup.sh
parent81ef14e81c55d18c6fd988294bd09c29b18a4afd (diff)
parent0c5fa6a11b1c540b1ffaa8fdcddb54b1bb2fe6e5 (diff)
Merge pull request #94 from montjoie/pxe-fix
Install PXE stuff at runtime
Diffstat (limited to 'lava-slave/scripts/setup.sh')
-rwxr-xr-xlava-slave/scripts/setup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lava-slave/scripts/setup.sh b/lava-slave/scripts/setup.sh
index fce01f8..1fb0bb3 100755
--- a/lava-slave/scripts/setup.sh
+++ b/lava-slave/scripts/setup.sh
@@ -10,6 +10,12 @@ if [ -z "$LAVA_MASTER_URI" ];then
exit 11
fi
+# Install PXE
+OPWD=$(pwd)
+cd /var/lib/lava/dispatcher/tmp && grub-mknetdir --net-directory=.
+cp /root/grub.cfg /var/lib/lava/dispatcher/tmp/boot/grub/
+cd $OPWD
+
lavacli identities add --uri $LAVA_MASTER_BASEURI --token $LAVA_MASTER_TOKEN --username $LAVA_MASTER_USER default
echo "Dynamic slave for $LAVA_MASTER ($LAVA_MASTER_URI)"