Prechádzať zdrojové kódy

Adds Fedora CoreOS (Preview)

Adds initial Fedora CoreOS preview.  If ignition
is not specified, it will pass a skip to the configuration
which may not be entirely useful.  Recommend setting
an ignition configuration with the desired config.
Antony Messerli 5 rokov pred
rodič
commit
a8acdb735d
2 zmenil súbory, kde vykonal 46 pridanie a 0 odobranie
  1. 45 0
      src/coreos.ipxe
  2. 1 0
      src/linux.ipxe

+ 45 - 0
src/coreos.ipxe

@@ -0,0 +1,45 @@
+#!ipxe
+
+# Fedora CoreOS (Preview)
+# https://getfedora.org/coreos/
+
+goto ${menu}
+
+:coreos
+set os Fedora CoreOS
+isset ${install_device} || set install_device sda
+isset ${ignition_url} || set ignition_url skip
+menu ${os}
+item --gap ${os}:
+item beta ${space} ${os} 30
+item install_dev ${space} Set install device: ${install_device}
+item ignition_config ${space} Set ignition config url: ${ignition_url}
+choose --default ${menu} menu || goto coreos_exit
+echo ${cls}
+goto ${menu} ||
+goto coreos_exit
+
+:stable
+:beta
+:alpha
+set release ${menu}
+set base_url https://builds.coreos.fedoraproject.org/prod/streams/testing/builds
+set build_version 30.20190716.1
+kernel ${base_url}/${build_version}/x86_64/fedora-coreos-${build_version}-installer-kernel nomodeset rd.neednet=1 coreos.inst=yes coreos.inst.install_dev=${install_device} coreos.inst.ignition_url=${ignition_url} ${console} coreos.inst.image_url=${base_url}/${build_version}/x86_64/fedora-coreos-${build_version}-metal.raw.xz initrd=fedora-coreos-${build_version}-installer-initramfs.img
+initrd ${base_url}/${build_version}/x86_64/fedora-coreos-${build_version}-installer-initramfs.img
+boot
+goto coreos_exit
+
+:install_dev
+echo -n Please set desired install device:  && read install_device
+clear menu
+goto coreos
+
+:ignition_config
+echo -n Please set Ignition Configuration URL:  && read ignition_url
+clear menu
+goto coreos
+
+:coreos_exit
+clear menu
+exit 0

+ 1 - 0
src/linux.ipxe

@@ -16,6 +16,7 @@ item ubuntu ${space} Ubuntu
 item --gap All Others:
 item alpinelinux ${space} Alpine Linux
 item devuan ${space} Devuan
+item coreos ${space} Fedora CoreOS (Preview)
 item flatcar ${space} Flatcar
 item gentoo ${space} Gentoo Linux
 item ipfire ${space} IPFire