[SeaBIOS] [PATCH] skip interactive boot menu if only one boot device present

Sven Schnelle svens at stackframe.org
Sat Apr 30 10:19:25 CEST 2011


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 at 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)
         ;
 
-- 
1.7.4.4




More information about the SeaBIOS mailing list