If SeaBIOS only detects one device, it makes no difference if the boot
menu is shown and the user only can select that found device, or the
system booting into that by default.

The only difference is, the user could power off the system during the
time the boot menu is shown. But, without changing the configuration,
the current state can’t be altered.

So, default to skipping the menu, if only one device is found, as that
is what benefits the most users.

Signed-off-by: Paul Menzel <pmen...@molgen.mpg.de>
---
 docs/Runtime_config.md | 2 +-
 src/boot.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/Runtime_config.md b/docs/Runtime_config.md
index 5795382..99ed8b2 100644
--- a/docs/Runtime_config.md
+++ b/docs/Runtime_config.md
@@ -173,7 +173,7 @@ There are several additional configuration options 
available in the
 
 | Filename            | Description
 |---------------------|---------------------------------------------------
-| show-boot-menu      | Controls the display of the boot menu. Valid values 
are 0: Disable the boot menu, 1: Display boot menu unconditionally, 2: Skip 
boot menu if only one device is present. The default is 1.
+| show-boot-menu      | Controls the display of the boot menu. Valid values 
are 0: Disable the boot menu, 1: Display boot menu unconditionally, 2: Skip 
boot menu if only one device is present. The default is 2.
 | boot-menu-message   | Customize the text boot menu message. Normally, when 
in text mode SeaBIOS will report the string "\\nPress ESC for boot 
menu.\\n\\n". This field allows the string to be changed. (This is a string 
field, and is added as a file containing the raw string.)
 | boot-menu-key       | Controls which key activates the boot menu. The value 
stored is the DOS scan code (eg, 0x86 for F12, 0x01 for Esc). If this field is 
set, be sure to also customize the **boot-menu-message** field above.
 | boot-menu-wait      | Amount of time (in milliseconds) to wait at the boot 
menu prompt before selecting the default boot.
diff --git a/src/boot.c b/src/boot.c
index 03bd251..bf98757 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -685,7 +685,7 @@ void
 interactive_bootmenu(void)
 {
     // XXX - show available drives?
-    u64 show_boot_menu = romfile_loadint("etc/show-boot-menu", 1);
+    u64 show_boot_menu = romfile_loadint("etc/show-boot-menu", 2);
 
     if (! CONFIG_BOOTMENU || show_boot_menu != 0)
         return;
-- 
2.26.2
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-le...@seabios.org

Reply via email to