Merge branch 'main' of github.com:hpcng/warewulf into overlay_refactor

This commit is contained in:
Gregory Kurtzer
2022-01-06 00:37:17 +00:00
5 changed files with 38 additions and 4 deletions

26
etc/ipxe/big_image.ipxe Normal file
View File

@@ -0,0 +1,26 @@
#!ipxe
echo
echo ================================================================================
echo Warewulf v4 now booting: {{.Fqdn}}
echo
echo Container: {{.ContainerName}}
echo Kernel: {{.KernelVersion}}
echo KernelArgs: {{.KernelArgs}}
echo
set base http://{{.Ipaddr}}:{{.Port}}
kernel --name kernel ${base}/kernel/{{.Hwaddr}} || goto reboot
imgextract --name container ${base}/container/{{.Hwaddr}} || goto reboot
imgextract --name kmods ${base}/kmods/{{.Hwaddr}} || goto reboot
imgextract --name system ${base}/overlay-system/{{.Hwaddr}} || goto reboot
boot kernel initrd=container initrd=kmods initrd=system {{.KernelArgs}} || goto reboot
:reboot
echo
echo There was an error, rebooting in 15s...
echo
sleep 15
reboot