Skip to content

Instantly share code, notes, and snippets.

@wido
Created August 31, 2022 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wido/36aad0ac8b823237fe68eb2127077257 to your computer and use it in GitHub Desktop.
Save wido/36aad0ac8b823237fe68eb2127077257 to your computer and use it in GitHub Desktop.
Make iPXE UEFI Boot ISO
#!/bin/bash
#
# Put this script in the source directory of the ipxe project
#
# The output ipxe-uefi.iso can be used to boot a server with iPXE
#
cd `dirname $0`
cd src
make bin-x86_64-efi/ipxe.efi
cd ..
mkfs.msdos -C ipxe-uefi.iso 1440
mkdir /tmp/ipxe
sudo mount -o loop ipxe-uefi.iso /tmp/ipxe
sudo mkdir -p /tmp/ipxe/efi/boot
sudo cp src/bin-x86_64-efi/ipxe.efi /tmp/ipxe/efi/boot/bootx64.efi
sudo umount /tmp/ipxe
rm -r /tmp/ipxe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment