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).
This commit is contained in:
bjorn3 2025-08-12 20:08:20 +02:00
parent f2b968f537
commit 472df6fb44

View File

@ -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),)