From 7ee409cb027dd69fe7f17b87c7984770430e6fb9 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Fri, 12 Sep 2025 03:35:21 +0000 Subject: [PATCH] Fix Debian 13 displaying for i386 architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add unsupported_arches field to Debian versions that don't support i386 - Mark Debian 13 (trixie), forky (testing), and sid (unstable) as unsupported for i386 - Modify debian.ipxe.j2 template to conditionally hide unsupported versions for i386 - Ensures only Debian 12 (bookworm) is shown for i386 users, which is correct Resolves issue #1672 where Debian 13 was incorrectly shown as available for i386 architecture despite dropping support after Debian 12. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Antony Messerli --- roles/netbootxyz/defaults/main.yml | 3 +++ roles/netbootxyz/templates/menu/debian.ipxe.j2 | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/roles/netbootxyz/defaults/main.yml b/roles/netbootxyz/defaults/main.yml index 191497d6..60459dd4 100644 --- a/roles/netbootxyz/defaults/main.yml +++ b/roles/netbootxyz/defaults/main.yml @@ -212,13 +212,16 @@ releases: stable: - code_name: trixie name: 13.0 (trixie) + unsupported_arches: ["i386"] - code_name: bookworm name: 12.0 (bookworm) testing: - code_name: forky name: forky (testing) + unsupported_arches: ["i386"] - code_name: sid name: sid (unstable) + unsupported_arches: ["i386"] devuan: base_dir: devuan enabled: true diff --git a/roles/netbootxyz/templates/menu/debian.ipxe.j2 b/roles/netbootxyz/templates/menu/debian.ipxe.j2 index 2e89fd8a..e43e1603 100644 --- a/roles/netbootxyz/templates/menu/debian.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/debian.ipxe.j2 @@ -16,11 +16,19 @@ clear older_release menu ${os} - ${os_arch} item --gap Latest Releases {% for item in releases.debian.versions.stable %} +{% if item.unsupported_arches and "i386" in item.unsupported_arches %} +iseq ${os_arch} i386 || item {{ item.code_name }} ${space} ${os} {{ item.name }} +{% else %} item {{ item.code_name }} ${space} ${os} {{ item.name }} +{% endif %} {% endfor %} item --gap Testing Releases {% for item in releases.debian.versions.testing %} +{% if item.unsupported_arches and "i386" in item.unsupported_arches %} +iseq ${os_arch} i386 || item {{ item.code_name }} ${space} ${os} {{ item.name }} +{% else %} item {{ item.code_name }} ${space} ${os} {{ item.name }} +{% endif %} {% endfor %} item --gap Older Releases item older_release ${space} Set release codename...