Skip to content

Commit

Permalink
Merge pull request #240 from erinn/master
Browse files Browse the repository at this point in the history
Adds in generic support for UEFI PXE boot
  • Loading branch information
jimi-c committed Jul 11, 2012
2 parents 1ad9005 + 23ec009 commit 7df50e7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion templates/etc/dhcp.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,29 @@ allow bootp;
ignore client-updates;
set vendorclass = option vendor-class-identifier;

option pxe-system-type code 93 = unsigned integer 16;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.5;
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.100 192.168.1.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
if option pxe-system-type = 00:02 {
filename "ia64/elilo.efi";
} else if option pxe-system-type = 00:06 {
filename "grub/grub-x86.efi";
} else if option pxe-system-type = 00:07 {
filename "grub/grub-x86_64.efi";
} else {
filename "pxelinux.0";
}
}

}

#for dhcp_tag in $dhcp_tags.keys():
Expand Down

0 comments on commit 7df50e7

Please sign in to comment.