From dd6b419440b36adf7cbd3cb2ffc2763507076cc5 Mon Sep 17 00:00:00 2001 From: Josh Burks Date: Tue, 18 Jun 2024 09:23:18 -0700 Subject: [PATCH] added asset-tag to ipxe script request fix #1110 Signed-off-by: Josh Burks --- CHANGELOG.md | 1 + overlays/host/rootfs/etc/dhcp/dhcpd.conf.ww | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a6d6c31..7a297412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix an invalid format issue for the GitHub nightly build action. #1258 - Fix broken `/etc/warewulf/excludes` handling #1266 - Fix wwclient not reading asset-tag. #1110 +- Fix iPXE script not including asset-tag #1110 ## v4.5.4, 2024-06-12 diff --git a/overlays/host/rootfs/etc/dhcp/dhcpd.conf.ww b/overlays/host/rootfs/etc/dhcp/dhcpd.conf.ww index b95d8200..332347aa 100644 --- a/overlays/host/rootfs/etc/dhcp/dhcpd.conf.ww +++ b/overlays/host/rootfs/etc/dhcp/dhcpd.conf.ww @@ -39,7 +39,7 @@ if substring (option vendor-class-identifier, 0, 9) = "PXEClient" { } {{- else }} if exists user-class and option user-class = "iPXE" { - filename "http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/ipxe/${mac:hexhyp}"; + filename "http://{{$.Ipaddr}}:{{$.Warewulf.Port}}/ipxe/${mac:hexhyp}?assetkey=${asset}&uuid=${uuid}""; } else { {{range $type,$name := $.Tftp.IpxeBinaries }} if option architecture-type = {{ $type }} {