From 33bc2355d4873656cc17244d6e5e50dbe71f348d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Jul 2024 14:49:39 +0200 Subject: [serversetup-bwlp-ipxe] Minor grub tweaks --- modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522