From a705d08519d26cd2ee581cd04cb70888b3a55b62 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 2 Dec 2012 18:06:35 +0100 Subject: [PATCH] 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. --- src/getty-generator/getty-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c index 1cef6aeae9..cb38f21052 100644 --- a/src/getty-generator/getty-generator.c +++ b/src/getty-generator/getty-generator.c @@ -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;