From 472df6fb4417a56449565a8365169e56bee949c2 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 12 Aug 2025 20:08:20 +0200 Subject: [PATCH] Fix netbooting on Debian In Debian Trixie OVMF has moved to a different location. In addition the bootrom of the network adapters no longer contains iPXE, so we need to manually chainload it (make sure to install the ipxe package). --- mk/qemu.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/qemu.mk b/mk/qemu.mk index d4466cb6c..1bfa5d404 100644 --- a/mk/qemu.mk +++ b/mk/qemu.mk @@ -25,6 +25,7 @@ else ifeq ($(ARCH),x86_64) QEMU_MEM?=2048 ifeq ($(uefi),yes) FIRMWARE=$(firstword \ + $(wildcard /usr/share/ovmf/OVMF.fd) \ $(wildcard /usr/share/OVMF/OVMF_CODE.fd) \ ) ifeq ($(FIRMWARE),) @@ -176,6 +177,7 @@ else EXTRANETARGS= ifeq ($(netboot),yes) EXTRANETARGS+=,tftp=$(BUILD),bootfile=redox.ipxe + QEMUFLAGS+=-kernel /usr/lib/ipxe/ipxe-amd64.efi endif ifneq ($(bridge),)