Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Supermathie/1fe384a61280abbdf3ced26fac695675 to your computer and use it in GitHub Desktop.
Save Supermathie/1fe384a61280abbdf3ced26fac695675 to your computer and use it in GitHub Desktop.
ISC DHCP PXE architecture switching example
option arch code 93 = unsigned integer 16;
if substring(option vendor-class-identifier, 0, 9) = "PXEClient" {
if option arch = 00:02 { # IA64 EFI boot
filename "/NoopApp.efi"; # not the right image, but we don't care
} else if option arch = 00:06 { # x86 EFI boot
filename "/NoopApp.efi"; # not the right image, but we don't care
} else if option arch = 00:07 { # BC (bytecode) EFI boot
filename "/live-efi/elilo.efi";
} else if option arch = 00:09 { # x64 EFI boot
filename "/live-efi/elilo.efi";
} else if option arch = 00:00 { # x86 BIOS PXE
filename "/pxelinux.0";
} else {
filename "/pxelinux.0";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment