From 11b24829204526886074eabb1524ee3ffa47ebfa Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Sun, 14 Dec 2025 03:31:05 +0300 Subject: [PATCH] Disable FreeBSD under UEFI mfsbsd images used by netboot.xyz are for BIOS only. This is the simplest I could come up with that works across all supported BSD, platforms and firmwares. --- roles/netbootxyz/templates/menu/bsd.ipxe.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/netbootxyz/templates/menu/bsd.ipxe.j2 b/roles/netbootxyz/templates/menu/bsd.ipxe.j2 index 80206baa..d06c1188 100644 --- a/roles/netbootxyz/templates/menu/bsd.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/bsd.ipxe.j2 @@ -10,8 +10,12 @@ menu BSD Installers - Current Arch [ ${arch} ] item --gap BSD Based Operating Systems {% for key, value in releases.items() | sort(attribute='1.name') %} {% if value.enabled is defined and value.menu == "bsd" and value.enabled | bool %} +{% if key == "freebsd" %} +iseq ${platform} efi || item {{ key }} ${space} {{ value.name }} +{% else %} item {{ key }} ${space} {{ value.name }} {% endif %} +{% endif %} {% endfor %} choose menu || goto bsd_exit