diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2020-05-19 23:39:42 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-05-21 13:38:27 -0400 |
commit | c61193d3ec2e29c0764ce93ad17cea259c57faad (patch) | |
tree | b6589c89c315d83712c2dbebffa636540810c43e /src/boot.c | |
parent | b8eda131954452bb5a236100a6572fe8f27d8021 (diff) | |
download | seabios-c61193d3ec2e29c0764ce93ad17cea259c57faad.tar.gz |
boot: Extend `etc/show-boot-menu` to configure skipping boot menu with only one device
Concerns were raised, that skipping the boot menu, if only one device is
present, might make debugging issues more difficult. So, extend the
current runtime configuration option `etc/show-boot-menu` to enable this
feature by setting it to 2.
Fixes: 29ee1fb8 ("Skip boot menu and timeout with only one boot device")
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Diffstat (limited to 'src/boot.c')
-rw-r--r-- | src/boot.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -685,12 +685,13 @@ void interactive_bootmenu(void) { // XXX - show available drives? + u64 show_boot_menu = romfile_loadint("etc/show-boot-menu", 1); - if (! CONFIG_BOOTMENU || !romfile_loadint("etc/show-boot-menu", 1)) + if (! CONFIG_BOOTMENU || show_boot_menu != 0) return; // skip menu if only one boot device and no TPM - if ((NULL == BootList.first->next) && !tpm_can_show_menu()) { + if ((show_boot_menu == 2) && (NULL == BootList.first->next) && !tpm_can_show_menu()) { printf("\n"); return; } |