summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp/inc/ipxemenu.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-09-19 11:27:22 +0200
committerSimon Rettberg2018-09-19 11:27:22 +0200
commit6da78493a0bb010a0fff50ac3cc23e018b15e979 (patch)
tree6baaa31e9d985e503e09cd669f11bce65355cd3d /modules-available/serversetup-bwlp/inc/ipxemenu.inc.php
parent[serversetup-bwlp] Pass initrd= on KCL for EFI mode (diff)
downloadslx-admin-6da78493a0bb010a0fff50ac3cc23e018b15e979.tar.gz
slx-admin-6da78493a0bb010a0fff50ac3cc23e018b15e979.tar.xz
slx-admin-6da78493a0bb010a0fff50ac3cc23e018b15e979.zip
[serversetup-bwlp] Differentiate between EFI/BIOS
Different executable/initrd etc. can be given for a simple boot entry of type "exec", or it can be specified that only one of them is supported. For bootentry type "script" there can still be only one entry, since you can just check the ${platform} variable within the script.
Diffstat (limited to 'modules-available/serversetup-bwlp/inc/ipxemenu.inc.php')
-rw-r--r--modules-available/serversetup-bwlp/inc/ipxemenu.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/serversetup-bwlp/inc/ipxemenu.inc.php b/modules-available/serversetup-bwlp/inc/ipxemenu.inc.php
index ed9f0986..56041c20 100644
--- a/modules-available/serversetup-bwlp/inc/ipxemenu.inc.php
+++ b/modules-available/serversetup-bwlp/inc/ipxemenu.inc.php
@@ -36,11 +36,11 @@ class IPxeMenu
}
}
- public function getMenuDefinition($targetVar)
+ public function getMenuDefinition($targetVar, $mode)
{
$str = "menu {$this->title}\n";
foreach ($this->items as $item) {
- $str .= $item->getMenuItemScript("m_{$this->menuid}", $this->defaultEntryId);
+ $str .= $item->getMenuItemScript("m_{$this->menuid}", $this->defaultEntryId, $mode);
}
if ($this->defaultEntryId === null) {
$defaultLabel = "mx_{$this->menuid}_poweroff";
@@ -61,11 +61,11 @@ class IPxeMenu
return $str;
}
- public function getItemsCode()
+ public function getItemsCode($mode)
{
$str = '';
foreach ($this->items as $item) {
- $str .= $item->getBootEntryScript("m_{$this->menuid}", 'fail');
+ $str .= $item->getBootEntryScript("m_{$this->menuid}", 'fail', $mode);
$str .= "goto slx_menu\n";
}
return $str;