Skip to content

Instantly share code, notes, and snippets.

@ptrcnull
Last active February 28, 2022 19:45
Show Gist options
  • Select an option

  • Save ptrcnull/d14491514185206ca10e2e7ff9d46813 to your computer and use it in GitHub Desktop.

Select an option

Save ptrcnull/d14491514185206ca10e2e7ff9d46813 to your computer and use it in GitHub Desktop.
Booting Alpine Linux with systemd-boot+iPXE

Building

git clone git://git.ipxe.org/ipxe.git
cd ipxe/src
make bin-x86_64-efi/ipxe.efi EMBED=alpine.ipxe

Then, put ipxe.efi on your ESP partition and add alpine.conf to the loader/entries/ directory.

title Alpine Linux Live
efi /ipxe.efi
#!ipxe
dhcp
set os Alpine Linux
set console tty0
set branch v3.15
set version 3.15.0
set arch x86_64
set mirror http://dl-cdn.alpinelinux.org/alpine/${branch}
set url ${mirror}/releases/${arch}/netboot-${version}
set repo ${mirror}/main
imgfree
kernel ${url}/vmlinuz-lts ip=dhcp alpine_repo=${repo} modules=loop,squashfs modloop=${url}/modloop-lts nomodeset initrd=initrd.magic
initrd ${url}/initramfs-lts
boot
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment