Skip to content

Instantly share code, notes, and snippets.

@spiegela
Last active October 18, 2015 01:13
Show Gist options
  • Save spiegela/8fa278f03f76f44d9745 to your computer and use it in GitHub Desktop.
Save spiegela/8fa278f03f76f44d9745 to your computer and use it in GitHub Desktop.
#!ipxe
echo Razor <%= task.label %> task boot_call
echo Installation node: <%= node_url %>
echo Installation repo: <%= repo_url %>
sleep 3
kernel <%= repo_url("/isolinux/vmlinuz") %> <%= render_template("kernel_args").strip %> || goto error
initrd <%= repo_url("/isolinux/initrd.img") %> || goto error
boot
:error
prompt --key s --timeout 60 ERROR, hit 's' for the iPXE shell; reboot in 60 seconds && shell || reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment