Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit c6609c6

Browse files
committed
Reverting changes from PR#41
The menu is not being generated properly after using this PR, reverting.
1 parent f9d02d8 commit c6609c6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/templateutils.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,13 @@ renderSystemNetworkTemplates() {
210210
local tmpDnsMasqConf="template/dnsmasq/dnsmasq.conf"
211211
if [[ ${DYNAMIC_PROFILE} == "false" ]];then
212212
local tmpPxeMenuFile=$(getTmpPxeMenuLocation)
213-
local tmpIpxeMenuFile=$(getTmpIpxeMenuLocation)
214213
else
215214
local tmpPxeMenuFile="template/pxelinux.cfg/default.dynamic"
216-
local tmpIpxeMenuFile="template/ipxe/menu.ipxe.head"
217215
fi
218216

219217
# Copy template files
220218
copySampleFile ${tmpDnsMasqConf} ${tmpDnsMasqConf}.modified
221219
copySampleFile ${tmpPxeMenuFile} ${tmpPxeMenuFile}.modified
222-
copySampleFile ${tmpIpxeMenuFile} ${tmpIpxeMenuFile}.modified
223220

224221
# Replace the template variables with their appropriate values
225222
local dhcpRangeMinimumPlaceholder=("@@DHCP_MIN@@" "@@ESP_DHCP_MIN@@" "@@RNI_DHCP_MIN@@" "@@EDGEBUILDER_DHCP_MIN@@")
@@ -238,7 +235,7 @@ renderSystemNetworkTemplates() {
238235
# Note that profile-scoped variables are not accessible here.
239236
# In order to gain access to that scope use the renderTemplate
240237
# functionality
241-
local stgFiles=("${tmpDnsMasqConf}.modified" "${tmpPxeMenuFile}.modified" "${tmpIpxeMenuFile}.modified")
238+
local stgFiles=("${tmpDnsMasqConf}.modified" "${tmpPxeMenuFile}.modified" "${WEB_ROOT}/tmp_menu.ipxe")
242239
for stgFile in ${stgFiles[@]}; do
243240
for i in {0..2}
244241
do

0 commit comments

Comments
 (0)