An Ansible playbook to prepare a SmartOS PI for network booting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. #!ipxe
  2. # courtesy of MerlinDMC, slightly modified by tgerczei
  3. # {{ ansible_managed }}
  4. set smartos-build {{ last_release }}
  5. :start
  6. menu Welcome to iPXE's Boot Menu
  7. item
  8. item --gap -- ------------------------- Operating systems ------------------------------
  9. item smartos Boot SmartOS (${smartos-build})
  10. item smartos_noimport Boot SmartOS (${smartos-build}) noimport
  11. item --gap -- ------------------------------ Utilities ---------------------------------
  12. item shell Enter iPXE shell
  13. item reboot Reboot
  14. item
  15. item exit Exit (boot local disk)
  16. choose --default smartos --timeout 5000 target && goto ${target}
  17. :shell
  18. echo Type exit to get the back to the menu
  19. shell
  20. set menu-timeout 0
  21. goto start
  22. :reboot
  23. reboot
  24. :exit
  25. exit
  26. :smartos
  27. kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -B console=text,smartos=true
  28. initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive
  29. boot
  30. goto start
  31. :smartos_noimport
  32. kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -B console=text,smartos=true,noimport=true
  33. initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive
  34. boot
  35. goto start