feat: add custom ipxe bootloader
- add rpm to manage tftpboot ipxe images for cobbler
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user