summaryrefslogtreecommitdiffstats
path: root/lava-slave
diff options
context:
space:
mode:
authorkhilman <khilman@users.noreply.github.com>2019-02-15 11:16:19 -0800
committerGitHub <noreply@github.com>2019-02-15 11:16:19 -0800
commit31d0a888ee944ac0f8c0418dff942adfde448ca7 (patch)
treec46f24f174d3ac7f5a53e1ac0801c1c629ce02bd /lava-slave
parenta0b84c74351f55f252b4de81dc2dc0a89e1163b8 (diff)
parent6e0bb66d11cc8cd21bedf43c245b6480fdfafe27 (diff)
Merge pull request #84 from montjoie/pxe
lava-slave: support PXE boot
Diffstat (limited to 'lava-slave')
-rw-r--r--lava-slave/Dockerfile5
-rw-r--r--lava-slave/grub.cfg14
2 files changed, 19 insertions, 0 deletions
diff --git a/lava-slave/Dockerfile b/lava-slave/Dockerfile
index 7cb607b..32a76b0 100644
--- a/lava-slave/Dockerfile
+++ b/lava-slave/Dockerfile
@@ -34,6 +34,11 @@ RUN apt-get update
RUN apt-get -y install lavacli
+# PXE stuff
+RUN apt-get -y install grub-efi-amd64-bin
+RUN cd /var/lib/lava/dispatcher/tmp && grub-mknetdir --net-directory=.
+COPY grub.cfg /var/lib/lava/dispatcher/tmp/boot/grub/
+
COPY default/* /etc/default/
COPY phyhostname /root/
diff --git a/lava-slave/grub.cfg b/lava-slave/grub.cfg
new file mode 100644
index 0000000..e133fed
--- /dev/null
+++ b/lava-slave/grub.cfg
@@ -0,0 +1,14 @@
+insmod part_msdos
+insmod part_gpt
+insmod lvm
+insmod loopback
+insmod iso9660
+insmod all_video
+insmod regexp
+insmod biosdisk
+set pager=1
+
+# This fake menu is necessary for letting LAVA see that grub is started
+menuentry "fake menu" {
+ linux /boot/kernel
+}