ubuntu.ipxe 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!ipxe
  2. # Ubuntu Operating System
  3. # http://www.ubuntu.org
  4. goto ${menu}
  5. :ubuntu
  6. set os ubuntu
  7. iseq ${manufacturer} Xen && set netcfg netcfg/get_ipaddress=${netX/ip} netcfg/get_netmask=${netX/netmask} netcfg/get_gateway=${netX/gateway} netcfg/get_nameservers=${dns} netcfg/confirm_static=true netcfg/choose_interface=eth0 netcfg/disable_autoconfig=true ||
  8. menu Ubuntu ${arch_a}
  9. item vivid Ubuntu 15.04 Vivid Vervet
  10. item utopic Ubuntu 14.10 Utopic Unicorn
  11. item trusty Ubuntu 14.04 LTS Trusty Tahr
  12. item saucy Ubuntu 13.10 Saucy Salamander
  13. item quantal Ubuntu 12.10 Quantal Quetzal
  14. item precise Ubuntu 12.04 LTS Precise Pangolin
  15. choose version || goto ubuntu_exit
  16. set mirrorcfg mirror/suite=${version} mirror/country=manual mirror/http/hostname=${mirror} mirror/http/directory=/${os}
  17. :deb_boot_type
  18. set dir ${os}/dists/${version}-updates/main/installer-${arch_a}/current/images/netboot/
  19. menu ${os} boot parameters
  20. item install ${os} install
  21. item rescue ${os} rescue mode
  22. item expert ${os} expert install
  23. item preseed ${os} specify preseed url
  24. choose --default ${type} type || goto ubuntu
  25. echo ${cls}
  26. goto deb_${type}
  27. :deb_rescue
  28. set install_params rescue/enable=true
  29. goto deb_boot
  30. :deb_expert
  31. set install_params priority=low
  32. goto deb_boot
  33. :deb_preseed
  34. echo -n Specify preseed URL for ${os} ${version}: && read preseedurl
  35. set install_params auto=true priority=critical preseed/url=${preseedurl}
  36. goto deb_boot
  37. :deb_install
  38. :deb_boot
  39. set dir ${dir}${menu}-installer/${arch_a}
  40. imgfree
  41. echo Boot parameters: ${install_params} -- quiet ${params}
  42. kernel http://${mirror}/${dir}/linux ${install_params} ${netcfg} ${mirrorcfg} -- quiet ${params}
  43. initrd http://${mirror}/${dir}/initrd.gz
  44. boot
  45. :ubuntu_exit
  46. clear menu
  47. chain linux.ipxe