feat(pxe): send uefi clients the efi loader
CI / prek (push) Successful in 11s
CI / tests (push) Successful in 42s
CI / deploy-sega (push) Successful in 10s

This commit is contained in:
ponas committed 2026-11-04 22:15:23 +01:00
1 parent 8f7e34a762
commit 284e5bd4a0
3 files changed
+32 -7

No files matched your search

+13 -1
View File
@@ -26,7 +26,12 @@ subnet 10.0.3.0 netmask 255.255.255.0 {
host tut {
\thardware ethernet f0:de:f1:58:be:1a;
\tfixed-address tut.edb.technology;
\tfilename "pxelinux.0";
\tif substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007" \
or substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009" {
\t\tfilename "grubx64.efi";
\t} else {
\t\tfilename "pxelinux.0";
\t}
}
"""
@@ -99,6 +104,13 @@ def test_dhcpd_configuration_without_pxe_filename(fixtures):
assert "filename" not in conf
def test_dhcpd_configuration_with_custom_pxe_filename(fixtures):
Interface.objects.update(pxe_filename="custom.efi")
conf = DhcpConfig.objects.get().dhcpd_configuration()
assert '\tfilename "custom.efi";\n' in conf
assert "vendor-class-identifier" not in conf
def test_dhcpd_configuration_without_dynamic_range(fixtures):
Ip4Subnet.objects.update(dhcp_dynamic=False)
assert "range" not in DhcpConfig.objects.get().dhcpd_configuration()