Skip to content

Instantly share code, notes, and snippets.

@sturadnidge
Created June 22, 2013 14:43
Show Gist options
  • Save sturadnidge/5841130 to your computer and use it in GitHub Desktop.
Save sturadnidge/5841130 to your computer and use it in GitHub Desktop.
ipxe boot script - despite several of these parameters being in the preseed.cfg file, they don't work unless you pass them in as kernel params. Not sure if that is a documentation bug or an actual bug.
#!ipxe
echo
echo attempting to netboot with IP ${ip}
echo
set buildserver your.build.server.fqdn
set pxebase http://${buildserver}/path/to/bootfiles/dir
kernel ${pxebase}/linux preseed/url=http://${buildserver}/${uuid}/preseed.cfg debian-installer/locale=en_US.UTF-
8 keymap=us netcfg/get_hostname=${uuid} netcfg/get_domain=${domain} --
initrd ${pxebase}/initrd.gz
boot ||
echo
echo net boot failed, booting ipxe shell
echo
shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment