Skip to content

Commit c67b05a

Browse files
committed
grub,makefile: Make ISO UEFI bootable
1. grub-mkrescue requires mtools and grub-efi-amd64-bin for UEFI boot 2. the grub config assumes all_video is present, so we add it Signed-off-by: Sandro Rüegge <rueegges@ethz.ch>
1 parent 5a1e856 commit c67b05a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ endif
9191
GRUB_DIR := grub/boot
9292
GRUB_FILE := grub-file
9393
GRUB_MKRESCUE := grub-mkrescue
94-
GRUB_MODULES := multiboot2 iso9660 serial normal
94+
GRUB_MODULES := multiboot2 iso9660 serial normal all_video
9595
ifneq ($(UNITTEST),)
9696
GRUB_CONFIG := grub/grub-test.cfg
9797
else

tools/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM ubuntu:latest
22

33
# build dependencies
44
RUN apt-get update -y
5-
RUN apt-get install -y build-essential clang make xorriso qemu-utils qemu-system-x86 patch
5+
RUN apt-get install -y build-essential clang make xorriso mtools qemu-utils qemu-system-x86 patch
66
# grub is a bit special in containers
7-
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install grub2 kmod python3
7+
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install grub2 grub-efi-amd64-bin kmod python3
88

99
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)