Skip to content

Instantly share code, notes, and snippets.

@UnconventionalMindset
Last active October 25, 2022 22:25
Show Gist options
  • Save UnconventionalMindset/f4ca2d66b943f916b5fecfad698b47ea to your computer and use it in GitHub Desktop.
Save UnconventionalMindset/f4ca2d66b943f916b5fecfad698b47ea to your computer and use it in GitHub Desktop.
Script to embed to iPXE to run Fedora core OS from RAM
#!ipxe
set STREAM stable
set VERSION 36.20221001.3.0
set CONFIGURL https://raw.githubusercontent.com/UnconventionalMindset/coreos-setup/main/coreos.ign
set BASEURL https://builds.coreos.fedoraproject.org/prod/streams/${STREAM}/builds/${VERSION}/x86_64
dhcp
kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img ignition.firstboot ignition.platform.id=metal ignition.config.url=${CONFIGURL}
initrd --name main ${BASEURL}/fedora-coreos-${VERSION}-live-initramfs.x86_64.img
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment