diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-06-13 16:38:39 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-06-13 16:38:39 +0200 |
commit | 0c5fa6a11b1c540b1ffaa8fdcddb54b1bb2fe6e5 (patch) | |
tree | 2c8a7b097ae39610a6cd1853ca2c87ba0013dd68 /lava-slave/scripts | |
parent | b9797e144c8434654c556477f6f8af28b377ef2d (diff) |
Install PXE stuff at runtime
When /var/lib/lava/dispatcher/tmp is a volume (like when using NFS), it
masks all PXE stuff installed during the build.
For preventing this, this patchs made this data installed at runtime.
Diffstat (limited to 'lava-slave/scripts')
-rwxr-xr-x | lava-slave/scripts/setup.sh | 6 |
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)" |