Skip to content

Instantly share code, notes, and snippets.

@taosx
Created April 14, 2024 23:36
Show Gist options
  • Save taosx/878db3a108b712d3498a10d01c5f5e8e to your computer and use it in GitHub Desktop.
Save taosx/878db3a108b712d3498a10d01c5f5e8e to your computer and use it in GitHub Desktop.
#!ipxe
# Set source URI
set mirror http://download.fedoraproject.org/pub/fedora/linux/releases/38
# Detect CPU architecture and calculate repository URI
cpuid --ext 29 && set arch x86_64 || set arch i386
set repo ${mirror}/Everything/${arch}/os
# Start installer
kernel ${repo}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${repo}
initrd ${repo}/images/pxeboot/initrd.img
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment