Created
August 31, 2022 07:48
-
-
Save wido/36aad0ac8b823237fe68eb2127077257 to your computer and use it in GitHub Desktop.
Make iPXE UEFI Boot ISO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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