From: Grant Slater Date: Fri, 30 Dec 2022 15:42:23 +0000 (+0000) Subject: dhcpd: use netboot.xyz-undionly.kpxe for PXE boot. X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/f0058f868ee2e8c30f17c313b6e0b1e9d4054a42 dhcpd: use netboot.xyz-undionly.kpxe for PXE boot. Use netboot.xyz-undionly.kpxe as it appears more reliable with our HP / HPE servers for netboot. --- diff --git a/cookbooks/dhcpd/recipes/default.rb b/cookbooks/dhcpd/recipes/default.rb index 4304ce006..1a85f8400 100644 --- a/cookbooks/dhcpd/recipes/default.rb +++ b/cookbooks/dhcpd/recipes/default.rb @@ -37,6 +37,14 @@ remote_file "/srv/tftp/netboot.xyz.efi" do mode "644" end +remote_file "/srv/tftp/netboot.xyz-snp.efi" do + action :create + source "https://boot.netboot.xyz/ipxe/netboot.xyz-snp.efi" + owner "root" + group "root" + mode "644" +end + remote_file "/srv/tftp/netboot.xyz.kpxe" do action :create source "https://boot.netboot.xyz/ipxe/netboot.xyz.kpxe" diff --git a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb index 49115c440..305c63a8d 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -33,7 +33,7 @@ subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { } elsif option arch = 00:07 { filename "netboot.xyz.efi"; } else { - filename "netboot.xyz.kpxe"; + filename "netboot.xyz-undionly.kpxe"; } } <% end -%>