There's no point in presenting a menu to the user if there's only one option to choose from. In that case skip this menu to save some waiting time during boot.
Signed-off-by: Sven Schnelle svens@stackframe.org --- src/boot.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/boot.c b/src/boot.c index 1cd4126..df26d33 100644 --- a/src/boot.c +++ b/src/boot.c @@ -360,6 +360,11 @@ interactive_bootmenu(void) if (! CONFIG_BOOTMENU || ! qemu_cfg_show_boot_menu()) return;
+ /* If we have only one bootdevice, + skip interactive menu */ + if (!BootList->next) + return; + while (get_keystroke(0) >= 0) ;