Files
Provisioning/internal/pxe/ipxe.go
T
josh 846b6847a5
build-and-push / test (push) Successful in 35s
build-and-push / build-and-push (push) Successful in 1m12s
Fix kernel panic by adding ramdisk_size to iPXE kernel params
The Proxmox initrd is too large for the default ramdisk allocation,
causing VFS to fail mounting root. Add ramdisk_size=16777216 (16GB)
along with rw, quiet, and splash=verbose for proper installer boot.

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

20 lines
495 B
Go

package pxe
import (
"fmt"
"provisioning/internal/model"
)
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)
return fmt.Sprintf(`#!ipxe
echo Provisioning: booting %s on ${mac}
kernel %s ramdisk_size=16777216 vga=791 video=vesafb:lfb:on rw quiet splash=verbose
initrd %s
boot
`, img.Name, kernelURL, initrdURL)
}