Fix initrd loading with explicit iPXE name binding
build-and-push / test (push) Successful in 34s
build-and-push / build-and-push (push) Successful in 1m14s

iPXE needs --name on the initrd command and initrd=<name> on the
kernel line to properly pass the initrd to the kernel. Without this,
the kernel never receives the initrd, causing VFS mount failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-14 11:03:03 -04:00
parent 846b6847a5
commit 44c358a89b
+5 -2
View File
@@ -12,8 +12,11 @@ func BuildIPXEScript(publicURL string, img *model.Image, mac string) string {
return fmt.Sprintf(`#!ipxe return fmt.Sprintf(`#!ipxe
echo Provisioning: booting %s on ${mac} echo Provisioning: booting %s on ${mac}
kernel %s ramdisk_size=16777216 vga=791 video=vesafb:lfb:on rw quiet splash=verbose echo Loading kernel...
initrd %s kernel %s ramdisk_size=16777216 vga=791 video=vesafb:lfb:on rw quiet splash=verbose initrd=initrd
echo Loading initrd...
initrd --name initrd %s
echo Booting...
boot boot
`, img.Name, kernelURL, initrdURL) `, img.Name, kernelURL, initrdURL)
} }