Forked from robinsmidsrod/ubuntu-installer-amd64-remote.ipxe
Last active
January 23, 2020 15:13
-
-
Save joelio/81acc4f07725a5aba2bcb7620071bce7 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 netboot installer via iPXE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
dhcp net0 | |
# Figure out if client is 64-bit capable | |
cpuid --ext 29 && set arch x64 || set arch x86 | |
echo Starting Ubuntu Xenial installer for ${mac} | |
set mirror http://archive.ubuntu.com | |
set release xenial | |
set base-url ${mirror}/ubuntu/dists/${release}/main/installer-${arch}/current/images/netboot/ubuntu-installer/${arch} | |
kernel ${base-url}/linux | |
initrd ${base-url}/initrd.gz | |
#imgargs linux auto=true url=http://yourserver/some/path/preseed.cfg | |
boot || goto failed | |
:failed | |
# If everything failed, give the user some options | |
echo Boot from ${base-url} failed | |
prompt --key 0x197e --timeout 2000 Press F12 to investigate || exit | |
shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment