nettester It still displays a blank line and a message ("Press return to boot now, any other key for boot menu") though. Besides mentioning that it's going to boot in 0 seconds.
Try (for EFI boot--warning! not even compile-tested):
diff -urN a/src/sys/arch/i386/stand/efiboot/boot.c b/src/sys/arch/i386/stand/efiboot/boot.c
--- a/src/sys/arch/i386/stand/efiboot/boot.c 2023-05-18 04:05:43.936444080 +0000
+++ b/src/sys/arch/i386/stand/efiboot/boot.c 2023-07-31 22:34:25.594092000 +0000
@@ -335,13 +335,17 @@
doboottypemenu();
}
- printf("Press return to boot now, any other key for boot menu\n");
+ if (bootcfg_info.timeout != 0)
+ printf("Press return to boot now, any other key for boot menu\n");
for (currname = 0; currname < NUMNAMES; currname++) {
printf("booting %s - starting in ",
sprint_bootsel(names[currname][0]));
- c = awaitkey((bootcfg_info.timeout < 0) ? 0
- : bootcfg_info.timeout, 1);
+ if (bootcfg_info.timeout != 0)
+ c = awaitkey((bootcfg_info.timeout < 0) ? 0
+ : bootcfg_info.timeout, 1);
+ else
+ c = '\0';
if ((c != '\r') && (c != '\n') && (c != '\0')) {
if ((boot_params.bp_flags & X86_BP_FLAGS_PASSWORD) == 0) {
/* do NOT ask for password */