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>
This commit is contained in:
Matt DeVillier 2014-06-13 17:20:23 -05:00 committed by Gerd Hoffmann
parent 066a995609
commit 29ee1fb85c
1 changed files with 6 additions and 0 deletions

View File

@ -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)
;