configuration-templates – Rev 52
?pathlinks?
###########################################################################
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
## rights of fair usage, the disclaimer and warranty conditions. ##
###########################################################################
## Class for iPXE/PXE booting serving files through TFTP. ##
###########################################################################
class "PXE" {
match if ( substring(option vendor-class-identifier, 0, 9) = "PXEClient" );
# Chain iPXE to PXE by specifying the next server.
if exists user-class and option user-class = "iPXE" {
filename "/srv/tftp/pxe/PC/bootx64.efi";
next-server 192.168.0.1;
}
# If this is a regular PXE client, load PXE.
elsif substring(option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/srv/tftp/pxe/PC/pxelinux.0";
}
# Otherwise, chainload iPXE.
else {
filename "/srv/tftp/pxe/PC/undionly.kpxe";
}
}