Cleanup and improvements

This commit is contained in:
2025-11-07 21:15:29 +01:00
parent 6cb1c7d48b
commit 55fdcc78c2
20 changed files with 247 additions and 135 deletions

View File

@@ -9,7 +9,7 @@ dhcp
goto node_${serial} || goto manual
# Default behavior (non install mode) is to exit iPXE script
{{ range (datasource "nodes" | jsonArray) }}
{{ range datasource "nodes" }}
{{- if .install }}
# {{ .filename }}
:node_{{ .serial }}
@@ -24,7 +24,7 @@ boot
:manual
menu Select node
{{ range (datasource "nodes" | jsonArray) }}
{{ range datasource "nodes" }}
item {{ .serial }} {{ .hostname }}
{{ end }}
choose selected || goto cancel

View File

@@ -1,4 +1,4 @@
{{ $tftpIp := (ds "dhcp").tftpIp -}}
{{ $tftpIp := (ds "config").dhcp.tftpIp -}}
enable-tftp
tftp-root=/tftproot