21 lines
433 B
Bash
Executable File
21 lines
433 B
Bash
Executable File
#!/usr/bin/bash
|
|
# clone the repo
|
|
git clone https://github.com/ipxe/ipxe.git
|
|
|
|
# change into it
|
|
cd ipxe/src
|
|
|
|
# copy the main.pxi to embed
|
|
cp /app/resources/main.ipxe ./
|
|
|
|
# build images
|
|
make bin/undionly.kpxe EMBED=main.ipxe
|
|
make bin-x86_64-efi/ipxe.efi EMBED=main.ipxe
|
|
|
|
# copy to /app
|
|
cp bin/undionly.kpxe /app/
|
|
cp bin-x86_64-efi/ipxe.efi /app/
|
|
|
|
# build rpm
|
|
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|