mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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:
committed by
Yu Watanabe
parent
c47f2a26b0
commit
b7c0d924bd
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user