846b6847a5
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>
20 lines
495 B
Go
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)
|
|
}
|