diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2014-06-13 17:20:23 -0500 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-17 15:39:15 +0100 |
commit | 29ee1fb85cf07eaa38eba5df49b86419cacc205d (patch) | |
tree | d8b9c6ec1f99c4415a7239d821cc69e7c429c5c5 | |
parent | 066a9956097b54530888b88ab9aa1ea02e42af5a (diff) | |
download | seabios-29ee1fb85cf07eaa38eba5df49b86419cacc205d.tar.gz |
Skip boot menu and timeout with only one boot device
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Message-Id: <45aa3ebe-b97c-f1af-2901-ec4e9bcd1084@molgen.mpg.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | src/boot.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) ; |