aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2026-04-09 10:48:15 +0000
committerToomas Soome <tsoome@FreeBSD.org>2026-04-09 11:24:42 +0000
commitc1c97f18b5b9110b3222816ed9129a882b6b5931 (patch)
tree748b95adacb654db7da94a65e81b5d26d314fbb7
parent5dc4da1a408b2219b622c498d53c58580e58132d (diff)
gptzfsboot: boot prompt should emit new line on input
In case the user did input, we should put newline on screen to avoid possible error messages to get mixed with user input.
-rw-r--r--stand/i386/gptzfsboot/zfsboot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stand/i386/gptzfsboot/zfsboot.c b/stand/i386/gptzfsboot/zfsboot.c
index 4c8eae9b65e5..72d791ad2364 100644
--- a/stand/i386/gptzfsboot/zfsboot.c
+++ b/stand/i386/gptzfsboot/zfsboot.c
@@ -320,10 +320,12 @@ main(void)
else if (!auto_boot || !OPT_CHECK(RBX_QUIET))
putchar('\n');
auto_boot = 0;
- if (parse_cmd())
+ if (parse_cmd()) {
putchar('\a');
- else
+ } else {
+ putchar('\n');
load();
+ }
}
}