Created
August 29, 2013 03:53
-
-
Save AlainODea/6374087 to your computer and use it in GitHub Desktop.
iPXE Menu Boot Configuration including SmartOS and DBAN
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 | |
set smartos-build 20130822T211238Z | |
set boot-url http://example.com/boot-isos | |
######## MAIN MENU ################### | |
:start | |
menu Welcome to iPXE's Boot Menu | |
item | |
item --gap -- ------------------------- Operating systems ------------------------------ | |
item smartos Boot SmartOS (${smartos-build}) | |
item smartos-rescue Rescue SmartOS (${smartos-build}) | |
item --gap -- ------------------------------ Utilities --------------------------------- | |
item dban Darik's Boot and Nuke (DBAN) | |
item shell Enter iPXE shell | |
item reboot Reboot | |
item | |
item exit Exit (boot local disk) | |
choose --default smartos --timeout 30000 target && goto ${target} | |
########## UTILITY ITEMS #################### | |
:dban | |
sanboot ${boot-url}/dban-2.2.7_i586.iso | |
:shell | |
echo Type exit to get the back to the menu | |
shell | |
set menu-timeout 0 | |
goto start | |
:reboot | |
reboot | |
:exit | |
exit | |
########## MENU ITEMS ####################### | |
:smartos | |
kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -v -B smartos=true,console=text | |
initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive | |
boot | |
:smartos-rescue | |
kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -v -B console=text,standalone=true,noimport=true,root_shadow='$5$2HOHRnK3$NvLlm.1KQBbB0WjoP7xcIwGnllhzp2HnT.mDO7DpxYA' | |
initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive | |
boot | |
goto start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change the boot-url to your own server and the root_shadow to something sensible. It is currently set to accept
root
as the password for the root account which is not ideal ;)