{{- /* iPXE boot script for a known, PXE-enabled host. Chains the OS installer kernel+initrd (from the distro catalog) and points inst.ks= back at bootapi's /ks/ over plain HTTP, so an installer with no internal-CA trust can fetch it. Mirrors how Cobbler generated a per-MAC gPXE script carrying inst.ks=. KernelURL/InitrdURL/RepoURL come from the selected catalog entry (artifactapi remote); KernelArgs are the catalog's extra args. KickstartURL uses BOOTAPI_BASE_URL (http://). */ -}} #!ipxe echo bootapi: provisioning {{ .FQDN }} ({{ .Platform }}) {{ if and .KernelURL .InitrdURL -}} kernel {{ .KernelURL }} initrd=initrd.img{{ if .RepoURL }} inst.repo={{ .RepoURL }}{{ end }} inst.ks={{ .KickstartURL }} ip=dhcp{{ range .KernelArgs }} {{ . }}{{ end }} initrd {{ .InitrdURL }} boot {{- else -}} echo bootapi: no boot images resolved for {{ .Platform }} (no catalog entry / BOOTAPI_BOOT_BASE_URL); booting local disk sanboot --no-describe --drive 0x80 || exit {{- end }}