diff --git a/internal/pxe/ipxe.go b/internal/pxe/ipxe.go index d49f996..74f8c71 100644 --- a/internal/pxe/ipxe.go +++ b/internal/pxe/ipxe.go @@ -7,17 +7,11 @@ import ( ) func BuildIPXEScript(publicURL string, img *model.Image, mac string) string { - kernelURL := fmt.Sprintf("%s/images/boot/%s", publicURL, img.KernelPath) - initrdURL := fmt.Sprintf("%s/images/boot/%s", publicURL, img.InitrdPath) isoURL := fmt.Sprintf("%s/images/boot/%s", publicURL, img.ISOPath) return fmt.Sprintf(`#!ipxe echo Provisioning: booting %s on ${mac} -echo Loading kernel... -kernel %s ramdisk_size=16777216 vga=791 video=vesafb:lfb:on rw quiet splash=verbose proxmox-iso-url=%s initrd=initrd -echo Loading initrd... -initrd --name initrd %s -echo Booting... -boot -`, img.Name, kernelURL, isoURL, initrdURL) +echo Booting ISO via HTTP SAN... +sanboot %s +`, img.Name, isoURL) }