#!ipxe

goto ${menu} ||

:live_menu
set os Feren OS Live
menu ${os}
item --gap ${os} Versions
item current ${space} ${os} Current
choose live_version || goto live_exit
menu ${os} ${live_version}
item --gap ${os} Flavors
goto ${live_version}

:current
choose path || goto live_menu
goto feren-boot

:feren-boot
imgfree
set squash_url ${live_endpoint}${path}filesystem.squashfs
set kernel_url ${live_endpoint}${path}
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} initrd=initrd.magic ${cmdline}
initrd ${kernel_url}initrd
boot

:live_exit
clear menu
exit 0

