rpmbuilder/rpms/unkin-undionly-kpxe/resources/build.sh
Ben Vincent e0026ddb05
All checks were successful
Build / build-9 (pull_request) Successful in 3m22s
Build / build-8 (pull_request) Successful in 5m7s
feat: add custom ipxe bootloader
- add rpm to manage tftpboot ipxe images for cobbler
2025-07-12 18:38:47 +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