summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2024-07-02 14:49:39 +0200
committerSimon Rettberg2024-07-02 14:49:39 +0200
commit33bc2355d4873656cc17244d6e5e50dbe71f348d (patch)
tree983554dae4d1c83e284f26352a72d03d05d971ae /modules-available
parent[main] Try to avoid false clock drift warnings (diff)
downloadslx-admin-33bc2355d4873656cc17244d6e5e50dbe71f348d.tar.gz
slx-admin-33bc2355d4873656cc17244d6e5e50dbe71f348d.tar.xz
slx-admin-33bc2355d4873656cc17244d6e5e50dbe71f348d.zip
[serversetup-bwlp-ipxe] Minor grub tweaks
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
index 9dce5214..a02c5180 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
@@ -183,6 +183,8 @@ EOF;
private function getMenuItemScript(MenuEntry $entry): string
{
+ if (!empty($entry->md5pass) || $entry->hidden)
+ return ''; // TODO
$str = "menuentry '" . str_replace("'", '', $entry->title) . "' --id 'id-" . $entry->menuentryid . "' {\n";
if ($entry->gap) {
$str .= "true\n"; // AFAICT, not possible in GRUB
@@ -251,7 +253,7 @@ echo "Unknown special command: $special"
sleep --interruptible --verbose 10
EOF;
}
- return $output;
+ return $output . "\n";
}
public function output(string $string): void