aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/boot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot.c b/src/boot.c
index afeb36a3..4f12988f 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -670,6 +670,12 @@ interactive_bootmenu(void)
if (! CONFIG_BOOTMENU || !romfile_loadint("etc/show-boot-menu", 1))
return;
+ // skip menu if only one boot device and no TPM
+ if ((NULL == BootList.first->next) && !tpm_can_show_menu()) {
+ printf("\n");
+ return;
+ }
+
while (get_keystroke(0) >= 0)
;