Compare commits
1 Commits
aaf1380c59
...
8ce318aa74
Author | SHA1 | Date |
---|---|---|
Philippe Caseiro | 8ce318aa74 |
|
@ -32,6 +32,29 @@ enable-tftp
|
||||||
tftp-root="${Vars.PXE.TFTPRoot}"
|
tftp-root="${Vars.PXE.TFTPRoot}"
|
||||||
|
|
||||||
pxe-prompt="${Vars.PXE.GreetingMessage}",${Vars.PXE.DelayTime}
|
pxe-prompt="${Vars.PXE.GreetingMessage}",${Vars.PXE.DelayTime}
|
||||||
pxe-service=tag:#ipxe,x86PC,"Legacy boot PXE chainload to iPXE",undionly.kpxe
|
|
||||||
|
# Based on logic in https://gist.github.com/robinsmidsrod/4008017
|
||||||
|
# iPXE sends a 175 option, checking suboptions
|
||||||
|
dhcp-match=set:ipxe-http,175,19
|
||||||
|
dhcp-match=set:ipxe-https,175,20
|
||||||
|
dhcp-match=set:ipxe-menu,175,39
|
||||||
|
# pcbios specific
|
||||||
|
dhcp-match=set:ipxe-pxe,175,33
|
||||||
|
dhcp-match=set:ipxe-bzimage,175,24
|
||||||
|
dhcp-match=set:ipxe-iscsi,175,17
|
||||||
|
# efi specific
|
||||||
|
dhcp-match=set:ipxe-efi,175,36
|
||||||
|
# combination
|
||||||
|
# set ipxe-ok tag if we have correct combination
|
||||||
|
# http && menu && iscsi ((pxe && bzimage) || efi)
|
||||||
|
tag-if=set:ipxe-ok,tag:ipxe-http,tag:ipxe-menu,tag:ipxe-iscsi,tag:ipxe-pxe,tag:ipxe-bzimage
|
||||||
|
tag-if=set:ipxe-ok,tag:ipxe-http,tag:ipxe-menu,tag:ipxe-iscsi,tag:ipxe-efi
|
||||||
|
|
||||||
|
|
||||||
|
## Load different PXE boot image depending on client architecture (when running as a proxy DHCP)
|
||||||
|
pxe-service=tag:!ipxe-ok, x86PC, "Legacy boot PXE chainload to iPXE", undionly.kpxe
|
||||||
|
pxe-service=tag:!ipxe-ok, BC_EFI, "UEFI32 boot chainload to iPXE", snponly.efi
|
||||||
|
pxe-service=tag:!ipxe-ok, X86-64_EFI, "UEFI64 boot chainload to iPXE", snponly.efi
|
||||||
|
|
||||||
dhcp-userclass=set:ipxe,iPXE
|
dhcp-userclass=set:ipxe,iPXE
|
||||||
pxe-service=tag:ipxe,x86PC,"${Vars.PXE.BootingMessage} (iPXE)", http://${Vars.ETH0.IP}:${Vars.MatchBox.HTTPPort}/boot.ipxe
|
dhcp-boot=tag:ipxe-ok,http://${Vars.ETH0.IP}:${Vars.Matchbox.HTTPPort}/boot.ipxe,,${Vars.ETH0.IP}
|
Loading…
Reference in New Issue