diff options
author | Simon Rettberg | 2019-03-19 16:45:01 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-19 16:45:01 +0100 |
commit | 847c6ef5d74992f0a453a12ea65924a5e4b68964 (patch) | |
tree | dae79c08942c4d5daf6fc2195c5be63b19412674 /modules-available/serversetup-bwlp-ipxe/page.inc.php | |
parent | [serversetup-bwlp-ipxe] Fix localboot detection for PXELinux import (diff) | |
download | slx-admin-847c6ef5d74992f0a453a12ea65924a5e4b68964.tar.gz slx-admin-847c6ef5d74992f0a453a12ea65924a5e4b68964.tar.xz slx-admin-847c6ef5d74992f0a453a12ea65924a5e4b68964.zip |
[serversetup-bwlp-ipxe] Fix incomplete bootentries, hide arch select
For type "script", the architecture options do nothing. Hide.
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 4941a44b..de802da8 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -475,6 +475,15 @@ class Page_ServerSetup extends Page $params['title'] = $row['title']; $params['oldentryid'] = $params['entryid'] = $row['entryid']; $params['builtin'] = $row['builtin']; + if (!is_array($params['entries'])) { + $params['entries'] = []; + } + if (!in_array(['mode' => 'PCBIOS'], $params['entries'])) { + $params['entries'][] = ['mode' => 'PCBIOS']; + } + if (!in_array(['mode' => 'EFI'], $params['entries'])) { + $params['entries'][] = ['mode' => 'EFI']; + } $params['menus'] = Database::queryAll('SELECT m.menuid, m.title FROM serversetup_menu m INNER JOIN serversetup_menuentry me ON (me.menuid = m.menuid) WHERE me.entryid = :entryid', ['entryid' => $row['entryid']]); |