From c67b05af6dd50bd034f705bdc9445cec60f9752c Mon Sep 17 00:00:00 2001 From: Sandro Ruegge Date: Fri, 7 Nov 2025 09:04:06 +0100 Subject: [PATCH] grub,makefile: Make ISO UEFI bootable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Makefile | 2 +- tools/docker/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f6600dc5..57260d46 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ endif GRUB_DIR := grub/boot GRUB_FILE := grub-file GRUB_MKRESCUE := grub-mkrescue -GRUB_MODULES := multiboot2 iso9660 serial normal +GRUB_MODULES := multiboot2 iso9660 serial normal all_video ifneq ($(UNITTEST),) GRUB_CONFIG := grub/grub-test.cfg else diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 41684ed4..33ddd36c 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -2,8 +2,8 @@ FROM ubuntu:latest # build dependencies RUN apt-get update -y -RUN apt-get install -y build-essential clang make xorriso qemu-utils qemu-system-x86 patch +RUN apt-get install -y build-essential clang make xorriso mtools qemu-utils qemu-system-x86 patch # grub is a bit special in containers -RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install grub2 kmod python3 +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 CMD ["/bin/bash"]