ipxe-static.j2 679 B

12345678910111213141516171819202122232425262728293031323334
  1. #!ipxe
  2. :start
  3. set version {{ loader_version }}
  4. echo {{ domain_name }} iPXE loader v${version}
  5. goto static
  6. :static
  7. echo Please enter in the networking information of your Server:
  8. imgfree
  9. ifclose net0
  10. echo -n IP: && read net0/ip
  11. echo -n Subnet mask: && read net0/netmask
  12. echo -n Gateway: && read net0/gateway
  13. echo -n DNS: && read dns
  14. ifopen net0
  15. echo Attempting chainload of {{ domain_name }}...
  16. goto menu || goto failsafe
  17. :menu
  18. chain --autofree http://{{ domain_name }}/menu.ipxe
  19. goto boot
  20. :failsafe
  21. echo Attempt to load {{ domain_name }} failed... restarting...
  22. goto start
  23. :boot
  24. sanboot --no-describe --drive 0x80
  25. :debug
  26. echo Type "exit" to return to menu
  27. shell
  28. goto start