Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinsmidsrod/f377a63dbd181d5e3a60 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/f377a63dbd181d5e3a60 to your computer and use it in GitHub Desktop.
:failed-login
echo Failed to log into ${after-login} menu option, please try again.
prompt --key 0x03 Press Ctrl-B to enter the iPXE command line, or any key to continue && goto shell ||
:login
login && goto ${after-login} || goto login
:fedora
echo Booting Fedora from iSCSI for ${initiator-iqn}
set after-login fedora
isset ${username} && isset ${password} || goto login
set root-path ${base-iscsi}:${hostname}.boot.fedora
sanhook ${root-path} || goto failed-login
# More stuff here, I assume
boot || goto failed
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment