diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-01-07 15:56:33 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-02-15 15:11:26 +0100 |
commit | 6e0bb66d11cc8cd21bedf43c245b6480fdfafe27 (patch) | |
tree | c46f24f174d3ac7f5a53e1ac0801c1c629ce02bd | |
parent | a0b84c74351f55f252b4de81dc2dc0a89e1163b8 (diff) |
lava-slave: support PXE boot
This patch adds support for booting from PXE
-rw-r--r-- | lava-slave/Dockerfile | 5 | ||||
-rw-r--r-- | lava-slave/grub.cfg | 14 |
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 +} |