The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0ca12047beb97f3e8dd19d272bafeea045b27252
commit 0ca12047beb97f3e8dd19d272bafeea045b27252 Author: Warner Losh <[email protected]> AuthorDate: 2026-09-11 04:14:45 +0000 Commit: Warner Losh <[email protected]> CommitDate: 2026-09-11 04:15:29 +0000 loader.efi: Eat the character used to break to OK When we can't find root, we give the user a chance to drop to the boot loader OK prompt. We should eat the character that's pressed to not interfere with the interactive session. Sponsored by: Netflix --- stand/efi/loader/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 0714b6647c13..95aa64191fe5 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -779,8 +779,10 @@ interactive_interrupt(const char *msg) } /* XXX no pause or timeout wait for char */ - if (ischar()) + if (ischar()) { + (void)getchar(); return (true); + } now = getsecs(); } while (now - then < fail_timeout); return (false);
