summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+}