mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2025-09-02 20:31:39 +02:00
28 lines
788 B
Bash
Executable File
28 lines
788 B
Bash
Executable File
#!/bin/bash
|
|
# prep release for upload to production container
|
|
|
|
# make ipxe directory to store ipxe disks
|
|
mkdir -p build/ipxe
|
|
|
|
# pull down upstream iPXE
|
|
git clone --depth 1 https://github.com/ipxe/ipxe.git ipxe_build
|
|
|
|
# copy iPXE config overrides into source tree
|
|
cp ipxe/local/* ipxe_build/src/config/local/
|
|
|
|
# build iPXE disks
|
|
cd ipxe_build/src
|
|
for ipxe_config in `ls ../../ipxe/disks/`
|
|
do
|
|
make EMBED=../../ipxe/disks/$ipxe_config
|
|
mv bin/ipxe.dsk ../../build/ipxe/$ipxe_config.dsk
|
|
mv bin/ipxe.iso ../../build/ipxe/$ipxe_config.iso
|
|
mv bin/ipxe.lkrn ../../build/ipxe/$ipxe_config.lkrn
|
|
mv bin/ipxe.usb ../../build/ipxe/$ipxe_config.usb
|
|
mv bin/undionly.kpxe ../../build/ipxe/$ipxe_config-undionly.kpxe
|
|
done
|
|
cd ../..
|
|
|
|
# copy iPXE src code into build directory
|
|
cp -R src/* build/
|