An Ansible playbook to prepare a SmartOS PI for network booting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

#!ipxe
# courtesy of MerlinDMC, slightly modified by tgerczei
# {{ ansible_managed }}
set smartos-build {{ last_release }}
:start
menu Welcome to iPXE's Boot Menu
item
item --gap -- ------------------------- Operating systems ------------------------------
item smartos Boot SmartOS (${smartos-build})
item smartos_noimport Boot SmartOS (${smartos-build}) noimport
item --gap -- ------------------------------ Utilities ---------------------------------
item shell Enter iPXE shell
item reboot Reboot
item
item exit Exit (boot local disk)
choose --default smartos --timeout 5000 target && goto ${target}
:shell
echo Type exit to get the back to the menu
shell
set menu-timeout 0
goto start
:reboot
reboot
:exit
exit
:smartos
kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -B console=text,smartos=true
initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive
boot
goto start
:smartos_noimport
kernel /smartos/${smartos-build}/platform/i86pc/kernel/amd64/unix -B console=text,smartos=true,noimport=true
initrd /smartos/${smartos-build}/platform/i86pc/amd64/boot_archive
boot
goto start