From: Matt DeVillier Date: Fri, 13 Jun 2014 22:20:23 +0000 (-0500) Subject: Skip boot menu and timeout with only one boot device X-Git-Tag: rel-1.14.0~36 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=29ee1fb85cf07eaa38eba5df49b86419cacc205d;p=seabios.git Skip boot menu and timeout with only one boot device Signed-off-by: Matt DeVillier Signed-off-by: Paul Menzel Message-Id: <45aa3ebe-b97c-f1af-2901-ec4e9bcd1084@molgen.mpg.de> Signed-off-by: Gerd Hoffmann --- diff --git a/src/boot.c b/src/boot.c index afeb36a..4f12988 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) ;