diff options
author | Simon Rettberg | 2019-03-20 15:09:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-20 15:09:30 +0100 |
commit | 4d9c020f54b923db189cbd5793a3b174890f66c2 (patch) | |
tree | 3deb2dacb88a8d7b12891d138e8f6953f5d91e9c /modules-available/serversetup-bwlp-ipxe | |
parent | [serversetup-bwlp-ipxe] Fix chaining script gen: add netX/ prefix (diff) | |
download | slx-admin-4d9c020f54b923db189cbd5793a3b174890f66c2.tar.gz slx-admin-4d9c020f54b923db189cbd5793a3b174890f66c2.tar.xz slx-admin-4d9c020f54b923db189cbd5793a3b174890f66c2.zip |
[serversetup-bwlp-ipxe] Chainfix: Add netX/ to DHCP opts too
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php index 666c781c..78ea3188 100644 --- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php @@ -405,13 +405,13 @@ boot -a -r /boot/default/kernel initrd=initramfs-stage31 ${slxextra} slxbase=boo $arg = $args[$i]; if ($arg === '-c') { // PXELINUX config file option ++$i; - $script .= "set 209:string {$args[$i]} || goto %fail%\n"; + $script .= "set netX/209:string {$args[$i]} || goto %fail%\n"; } elseif ($arg === '-p') { // PXELINUX prefix path option ++$i; - $script .= "set 210:string {$args[$i]} || goto %fail%\n"; + $script .= "set netX/210:string {$args[$i]} || goto %fail%\n"; } elseif ($arg === '-t') { // PXELINUX timeout option ++$i; - $script .= "set 211:int32 {$args[$i]} || goto %fail%\n"; + $script .= "set netX/211:int32 {$args[$i]} || goto %fail%\n"; } elseif ($arg === '-o') { // Overriding various DHCP options ++$i; if (preg_match('/^((?:0x)?[a-f0-9]{1,4})\.([bwlsh])=(.*)$/i', $args[$i], $out)) { @@ -420,7 +420,7 @@ boot -a -r /boot/default/kernel initrd=initramfs-stage31 ${slxextra} slxbase=boo if ($opt > 0 && $opt < 255) { static $optType = ['b' => 'uint8', 'w' => 'uint16', 'l' => 'int32', 's' => 'string', 'h' => 'hex']; $type = $optType[$out[2]]; - $script .= "set {$opt}:{$type} {$args[$i]} || goto %fail%\n"; + $script .= "set netX/{$opt}:{$type} {$args[$i]} || goto %fail%\n"; } } } elseif ($arg{0} === '-') { |