aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2020-05-24 17:45:34 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-05-24 21:50:09 -0400
commit926fd4e05e667e7835073ee7c8612c11e23dc57f (patch)
treec5af202bff4d698d2e9a827b374a301ac3feef00
parent7e9db04923854b7f4edca33948f55abee22907b9 (diff)
downloadseabios-926fd4e05e667e7835073ee7c8612c11e23dc57f.tar.gz
boot: Fix logic for boot menu display
Commit c61193d3 [boot: Extend `etc/show-boot-menu`...] changed the logic surrounding the use of show_boot_menu incorrectly, leading the boot menu to be skipped by default with no way to override. Correct the logic error so that show_boot_menu works as documented. Test: build/boot SeaBIOS, verify boot menu option shown by default. Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
-rw-r--r--src/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot.c b/src/boot.c
index 03bd2512..1f7fce19 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -687,7 +687,7 @@ interactive_bootmenu(void)
// XXX - show available drives?
u64 show_boot_menu = romfile_loadint("etc/show-boot-menu", 1);
- if (! CONFIG_BOOTMENU || show_boot_menu != 0)
+ if (! CONFIG_BOOTMENU || show_boot_menu == 0)
return;
// skip menu if only one boot device and no TPM