Files
Provisioning/internal/pxe/ipxe.go
T
josh f58ab9fab3
build-and-push / test (push) Successful in 35s
build-and-push / build-and-push (push) Successful in 1m20s
Add automated PXE installation via ISO GRUB modification and auto-answer endpoint
Modifies uploaded ISO's GRUB config in-place to set timeout=0 and inject
proxmox-start-auto-installer + answer-url kernel params, enabling fully
hands-off installation. Adds /api/boot/auto-answer endpoint that identifies
hosts by ARP-resolving the requester's IP to MAC address.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-14 14:28:10 -04:00

18 lines
333 B
Go

package pxe
import (
"fmt"
"provisioning/internal/model"
)
func BuildIPXEScript(publicURL string, img *model.Image, mac string) string {
isoURL := fmt.Sprintf("%s/images/boot/%s", publicURL, img.ISOPath)
return fmt.Sprintf(`#!ipxe
echo Provisioning: booting %s on ${mac}
echo Booting ISO...
sanboot %s
`, img.Name, isoURL)
}