#!ipxe
dhcp
# per-host branch: hosts/<mac-with-hyphens>.ipxe wins if present, else fall through
chain --autofree http://${next-server}/hosts/${mac:hexhyp}.ipxe ||
echo == ManagedWay provisioning :: mac=${mac} ip=${ip} ==
echo == SystemRescue (kexec-install path, all sleds) ==
set base http://${next-server}/sysrescue
kernel ${base}/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=${base}/ checksum=y copytoram=y sysrescuecfg=http://${next-server}/sysrescue.yaml ar_nowait ip=dhcp nofirewall rootpass=93a1f690815c
initrd ${base}/sysresccd/boot/x86_64/sysresccd.img
boot
