summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-19 16:28:05 +0100
committerSimon Rettberg2019-03-19 16:28:05 +0100
commit2c52f6fd139a83a38eba51a2bd3ab941c2343a6d (patch)
tree48a38daf82395f784746dc48030e660fd4b7a658 /modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
parent[statistics] Show error message if BIOS info fetching fails (diff)
downloadslx-admin-2c52f6fd139a83a38eba51a2bd3ab941c2343a6d.tar.gz
slx-admin-2c52f6fd139a83a38eba51a2bd3ab941c2343a6d.tar.xz
slx-admin-2c52f6fd139a83a38eba51a2bd3ab941c2343a6d.zip
[serversetup-bwlp-ipxe] Fix localboot detection for PXELinux import
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
index 9f7232a3..dc90ea07 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
@@ -244,8 +244,8 @@ class IPxe
public static function importPxeMenuEntries($pxe, &$menuEntries, &$defaultLabel)
{
foreach ($pxe->sections as $section) {
- if ($section->localBoot || preg_match('/chain\.c32$/i', $section->kernel)) {
- $menuEntries['localboot'] = 'localboot';
+ if ($section->localBoot !== false || preg_match('/chain\.c32$/i', $section->kernel)) {
+ $menuEntries['localboot'] = $section;
continue;
}
if ($section->label === null) {