Copy iPXE overrides into source directory during build

Allows for customization of upsteam.  Also added comments
to prep file
This commit is contained in:
Antony Messerli 2015-09-06 19:01:22 -05:00
parent ef3b8c1946
commit 621e18e4f3
2 changed files with 48 additions and 0 deletions

View file

@ -1,8 +1,16 @@
#!/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/`
do
@ -14,4 +22,6 @@ do
mv bin/undionly.kpxe ../../build/ipxe/$ipxe_config-undionly.kpxe
done
cd ../..
# copy iPXE src code into build directory
cp -R src/* build/