mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 18:18:05 +02:00
main: only force details if system has non-tty0 console
Right now we're unconditionally forcing details mode, which is clearly wrong.
This commit is contained in:
parent
270615b516
commit
a3af9feed3
1 changed files with 7 additions and 2 deletions
|
|
@ -1909,8 +1909,6 @@ add_consoles_from_file (state_t *state,
|
|||
size_t console_length;
|
||||
char *console_device;
|
||||
|
||||
state->should_force_details = true;
|
||||
|
||||
console = strdup (remaining_command_line);
|
||||
|
||||
end = strpbrk (console, " \n\t\v");
|
||||
|
|
@ -1924,6 +1922,13 @@ add_consoles_from_file (state_t *state,
|
|||
break;
|
||||
}
|
||||
|
||||
/* if we are in a weird case force details,
|
||||
* so the user probably doesn't care about
|
||||
* graphical splashes
|
||||
*/
|
||||
if (strcmp (console, "tty0") != 0)
|
||||
state->should_force_details = true;
|
||||
|
||||
console_length = strlen (console);
|
||||
|
||||
asprintf (&console_device, "/dev/%s", console);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue