Skip to content

Commit 4825130

Browse files
committed
Play it safe with option6:61 instead of option6:client-arch
Signed-off-by: Henrik Holmboe <henrik@dynamist.se>
1 parent 5810188 commit 4825130

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ironic-config/dnsmasq.conf.j2

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,14 @@ ra-param={{ env.PROVISIONING_INTERFACE }},0,0
5656

5757
dhcp-vendorclass=set:pxe6,enterprise:343,PXEClient
5858
dhcp-userclass=set:ipxe6,iPXE
59-
# Architecture detection via DHCPv6 option 61 (RFC 5970).
60-
# Note: option:client-arch is a DHCPv4-only alias (option 93) and silently
61-
# adds rules to the DHCPv4 match list; use option6:client-arch for DHCPv6.
62-
dhcp-match=set:amd64,option6:client-arch,7
63-
dhcp-match=set:amd64,option6:client-arch,9
59+
# option6:client-arch is not defined in dnsmasq upstream, resort to architecture
60+
# detection via DHCPv6 option 61 (RFC 5970)
6461
# Client is (i)PXE booting on EFI machine
62+
dhcp-match=set:amd64,option6:61,7
63+
dhcp-match=set:amd64,option6:61,9
6564
dhcp-option=tag:pxe6,tag:amd64,option6:bootfile-url,tftp://{{ env.IRONIC_URL_HOST }}/snponly-x86_64.efi
6665
# Client is (i)PXE booting on arm64 EFI machine
67-
dhcp-match=set:arm64,option6:client-arch,11
66+
dhcp-match=set:arm64,option6:61,11
6867
dhcp-option=tag:pxe6,tag:arm64,option6:bootfile-url,tftp://{{ env.IRONIC_URL_HOST }}/snponly-arm64.efi
6968
# Fallback: serve x86_64 when PXE client is detected but architecture
7069
# could not be determined. Legacy BIOS does not support IPv6 PXE.

0 commit comments

Comments
 (0)