rpmbuilder/rpms/unkin-undionly-kpxe/resources/build.sh
Ben Vincent 8f3d7c38da
Some checks failed
Build / build-9 (pull_request) Failing after 3m11s
Build / build-8 (pull_request) Failing after 4m16s
feat: add custom ipxe bootloader
- add rpm to manage tftpboot ipxe images for cobbler
2025-07-12 18:18:30 +10:00

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