1
0

freebsd.ipxe.j2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!ipxe
  2. # FreeBSD Operating System
  3. # http://www.freebsd.org
  4. :freebsd_menu
  5. set os {{ releases.freebsd.name }}
  6. menu ${os}
  7. {% for key, value in endpoints.items() | sort %}
  8. {% if value.os == "freebsd" %}
  9. item {{ value.path }} ${space} ${os} {{ value.version }}
  10. {% endif %}
  11. {% endfor %}
  12. choose ver || goto freebsd_exit
  13. goto type_select
  14. :type_select
  15. menu ${os}
  16. item default.img ${space} Default
  17. item special-edition.img ${space} Special Edition
  18. choose type || goto freebsd_exit
  19. goto boot_freebsd
  20. :boot_freebsd
  21. imgfree
  22. echo This loads an mfsbsd installer (http://mfsbsd.vx.sk/).
  23. echo Root password for all images: mfsroot
  24. echo You'll need to configure networking manually for the installer disk as
  25. echo it uses dhcp by default:
  26. echo ifconfig xn0 inet <public ip> netmask 255.255.255.0
  27. echo route delete default; route add default <public ip x.x.x.1>
  28. echo echo "nameserver x.x.x.x" > /etc/resolv.conf
  29. echo Once network is configured, you can launch the usual installer:
  30. echo bsdinstall
  31. initrd ${live_endpoint}${ver}${type}
  32. chain ${memdisk} harddisk raw
  33. exit
  34. :freebsd_exit
  35. clear menu
  36. exit 0