Moving CoreOS to main Linux menu

Now requires cloud-config-url, will probably add a resuce mode using autologin next
This commit is contained in:
Antony Messerli 2015-09-06 18:40:27 -05:00
parent 0a947c958c
commit a1eb789975
2 changed files with 37 additions and 0 deletions

32
src/coreos.ipxe Normal file
View File

@ -0,0 +1,32 @@
#!ipxe
# CoreOS
# https://www.coreos.com
goto ${menu}
:coreos
set os coreos
menu ${os}
item --gap CoreOS:
item stable ${space} CoreOS Stable Channel
item beta ${space} CoreOS Beta Channel
item alpha ${space} CoreOS Alpha Channel
choose --default ${menu} menu || goto coreos_exit
echo ${cls}
goto boot_coreos ||
goto coreos_exit
:boot_coreos
set release ${menu}
set base-url http://${release}.release.core-os.net/amd64-usr/current
isset cloud-config-url && echo Cloud Config URL is set... || echo -n Please set Cloud Config URL: && read cloud-config-url
kernel ${base-url}/coreos_production_pxe.vmlinuz cloud-config-url=${cloud-config-url}
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
goto coreos_exit
:coreos_exit
clear menu
chain menu.ipxe
exit 0

View File

@ -8,6 +8,7 @@ iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
item --gap Operating Systems:
item archlinux ${space} ArchLinux
item centos ${space} CentOS
item coreos ${space} CoreOS
item debian ${space} Debian
item fedora ${space} Fedora
item gentoo ${space} Gentoo
@ -42,6 +43,10 @@ goto linux_menu
chain centos.ipxe
goto linux_menu
:coreos
chain coreos.ipxe
goto linux_menu
:debian
chain debian.ipxe
goto linux_menu