Merge branch 'master' into schema_work

main
Digimer 4 years ago committed by GitHub
commit be942cea49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 29
      html/skins/alteeve/pxe.txt
  2. 6
      tools/striker-manage-install-target

@ -9,21 +9,20 @@ ddns-update-style none;
option arch code 93 = unsigned integer 16; option arch code 93 = unsigned integer 16;
subnet #!variable!network!# netmask 255.255.0.0 { subnet #!variable!network!# netmask 255.255.0.0 {
default-lease-time 600; default-lease-time 600;
max-lease-time 1200; max-lease-time 1200;
range #!variable!range!#; range #!variable!range!#;
option routers #!variable!router!#; option routers #!variable!router!#;
next-server #!variable!router!#;
class "pxeclients" {
class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; next-server #!variable!router!#;
next-server 192.168.0.1; if option arch = 00:07 {
if option pxe-system-type = 00:07 { filename "BOOTX64.efi";
filename "BOOTX64.efi"; } else {
} else { filename "pxelinux.0";
filename "pxelinux.0"; }
} }
}
} }
<!-- end dhcpd_conf --> <!-- end dhcpd_conf -->

@ -503,9 +503,9 @@ sub setup_boot_environment
$striker_number = 1 if not $striker_number; $striker_number = 1 if not $striker_number;
$striker_number =~ s/^0//; $striker_number =~ s/^0//;
my $third_octet = (10 * $striker_number) + 4; my $third_octet = (10 * $striker_number) + 4;
$third_octet = 254 if $third_octet > 254; $third_octet = 254 if $third_octet > 254;
my $first_part = ($bcn_network =~ /^(\d+\.\d+)\./)[0].".".$third_octet; my $first_part = ($bcn_network =~ /^(\d+\.\d+)\./)[0].".".$third_octet;
my $range = $first_part.".10 ".$first_part.".250"; my $range = $first_part.".10 ".$first_part.".250";
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => { $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => {
's1:striker_number' => $striker_number, 's1:striker_number' => $striker_number,
's2:third_octet' => $third_octet, 's2:third_octet' => $third_octet,

Loading…
Cancel
Save