Last active
August 29, 2015 14:08
-
-
Save robinsmidsrod/f377a63dbd181d5e3a60 to your computer and use it in GitHub Desktop.
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
: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