mirror of
https://github.com/danderson/netboot.git
synced 2026-01-26 02:51:29 +01:00
This guarantees that we load the real OS from an iPXE with a known featureset, rather than rely on the firmware iPXEs to be correct. Also switch to ipxe.pxe for BIOS boots instead of undionly.kpxe. ipxe.pxe works when you chainload from one iPXE to another, whereas undionly.kpxe encounters some kind of poorly explained bug where it loses the ability to configure networking. Tested against the following configurations: - VirtualBox + BIOS w/ iPXE - VirtualBox + BIOS w/ Intel UNDI - VirtualBox + EFI - KVM + SeaBIOS w/ iPXE - KVM + OVMF (EFI) - Dell R610 + Dell BIOS/PXE Fixes #51, fixes #52.
18 lines
716 B
Makefile
18 lines
716 B
Makefile
.PHONY: ipxe
|
|
|
|
ipxe:
|
|
rm -rf ipxe
|
|
git clone git://git.ipxe.org/ipxe.git
|
|
(cd ipxe && git rev-parse HEAD >COMMIT-ID)
|
|
rm -rf ipxe/.git
|
|
(cd ipxe/src && make bin/ipxe.pxe EMBED=../../../pixiecore/boot.ipxe)
|
|
(cd ipxe/src && make bin-x86_64-efi/ipxe.efi EMBED=../../../pixiecore/boot.ipxe)
|
|
(cd ipxe/src && make bin-i386-efi/ipxe.efi EMBED=../../../pixiecore/boot.ipxe)
|
|
(cd ipxe && rm -rf bin && mkdir bin)
|
|
mv -f ipxe/src/bin/ipxe.pxe ipxe/bin/ipxe.pxe
|
|
mv -f ipxe/src/bin-x86_64-efi/ipxe.efi ipxe/bin/ipxe-x86_64.efi
|
|
mv -f ipxe/src/bin-i386-efi/ipxe.efi ipxe/bin/ipxe-i386.efi
|
|
go-bindata -o ipxe/ipxe-bin.go -pkg ipxe -nometadata -nomemcopy -prefix ipxe/bin/ ipxe/bin
|
|
rm -rf ipxe/bin
|
|
(cd ipxe/src && make clean)
|