mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
getty-generator: fix handling systems without a console
If the system does not have any active console, we should not try to create an empty symlink. Instead, create no symlink at all. Otherwise, on systems with CONFIG_VT=n and no serial console, we will create a symlink with an empty template parameter.
This commit is contained in:
parent
0e168acbd6
commit
a705d08519
@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
/* Automatically add in a serial getty on the kernel
|
||||
* console */
|
||||
if (tty_is_vc(tty))
|
||||
if (isempty(tty) || tty_is_vc(tty))
|
||||
free(active);
|
||||
else {
|
||||
int k;
|
||||
|
Loading…
Reference in New Issue
Block a user