Forked from joelio/ubuntu-installer-remote.ipxe
Last active
January 19, 2022 23:19
-
-
Save firestorm942/6d34cc9b51285ad48ddf57b6651eb812 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 netboot installer via iPXE
This file contains 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 focal | |
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