From 25aa46c359399024f3195bd7e64bea271812e462 Mon Sep 17 00:00:00 2001 From: Digimer Date: Tue, 9 Feb 2021 16:59:51 -0500 Subject: [PATCH] * Fixed initial UEFI PXE booting (doesn't work yet, but UEFI clients get an IP properly and get the boot image) Signed-off-by: Digimer --- html/skins/alteeve/pxe.txt | 29 ++++++++++++++--------------- tools/striker-manage-install-target | 6 +++--- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/html/skins/alteeve/pxe.txt b/html/skins/alteeve/pxe.txt index d5b6fefa..34530b32 100644 --- a/html/skins/alteeve/pxe.txt +++ b/html/skins/alteeve/pxe.txt @@ -9,21 +9,20 @@ ddns-update-style none; option arch code 93 = unsigned integer 16; subnet #!variable!network!# netmask 255.255.0.0 { - default-lease-time 600; - max-lease-time 1200; - range #!variable!range!#; - option routers #!variable!router!#; - next-server #!variable!router!#; - - class "pxeclients" { - match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; - next-server 192.168.0.1; - if option pxe-system-type = 00:07 { - filename "BOOTX64.efi"; - } else { - filename "pxelinux.0"; - } - } + default-lease-time 600; + max-lease-time 1200; + range #!variable!range!#; + option routers #!variable!router!#; + + class "pxeclients" { + match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; + next-server #!variable!router!#; + if option arch = 00:07 { + filename "BOOTX64.efi"; + } else { + filename "pxelinux.0"; + } + } } diff --git a/tools/striker-manage-install-target b/tools/striker-manage-install-target index 2e7d5394..60d62455 100755 --- a/tools/striker-manage-install-target +++ b/tools/striker-manage-install-target @@ -503,9 +503,9 @@ sub setup_boot_environment $striker_number = 1 if not $striker_number; $striker_number =~ s/^0//; my $third_octet = (10 * $striker_number) + 4; - $third_octet = 254 if $third_octet > 254; - my $first_part = ($bcn_network =~ /^(\d+\.\d+)\./)[0].".".$third_octet; - my $range = $first_part.".10 ".$first_part.".250"; + $third_octet = 254 if $third_octet > 254; + my $first_part = ($bcn_network =~ /^(\d+\.\d+)\./)[0].".".$third_octet; + my $range = $first_part.".10 ".$first_part.".250"; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => { 's1:striker_number' => $striker_number, 's2:third_octet' => $third_octet,