RackHD/on-taskgraph

View on GitHub
data/profiles/install-photon-os.ipxe

Summary

Maintainability
Test Coverage
echo Starting Photon OS <%=version%> installer for ${hostidentifier}

<% if( typeof progressMilestones !== 'undefined' && progressMilestones.enterProfileUri ) { %>
    imgfetch --name fakedimage http://<%=server%>:<%=port%><%-progressMilestones.enterProfileUri%> ||
    imgfree fakedimage ||
<% } %>

set base-url <%=repo%>/isolinux
set params initrd=initrd.img ks=<%=installScriptUri%> hostname=<%=hostname%> ksdevice=bootif BOOTIF=01-${netX/mac} console=<%=comport%>,115200n8 console=tty0
kernel ${base-url}/vmlinuz repo=<%=repo%>/RPMS/ ${params}
initrd ${base-url}/initrd.img

<% if( typeof progressMilestones !== 'undefined' && progressMilestones.startInstallerUri ) { %>
    imgfetch --name fakedimage http://<%=server%>:<%=port%><%-progressMilestones.startInstallerUri%> ||
    imgfree fakedimage ||
<% } %>

boot || prompt --key 0x197e --timeout 2000 Press F12 to investigate || exit shell