firstboot: add newline before key wait

When sd-firstboot is ran during first boot of a new system this missing
newline leads to a bootup message being appended on the same line as the
message instructing to press a key.
This commit is contained in:
Michael Ferrari
2024-06-05 19:33:19 +02:00
committed by Yu Watanabe
parent c47f2a26b0
commit b7c0d924bd

View File

@@ -97,8 +97,7 @@ static bool press_any_key(void) {
char k = 0;
bool need_nl = true;
printf("-- Press any key to proceed --");
fflush(stdout);
puts("-- Press any key to proceed --");
(void) read_one_char(stdin, &k, USEC_INFINITY, &need_nl);