chiark / gitweb /
network/link: Match - filter on kernel cmdline, host and virt
[elogind.git] / src / getty-generator / getty-generator.c
index feb58156ea1687409f9f81e68ac7d312dc102efb..f352a29f99ede35eaefe26a9953efc1caf0411a5 100644 (file)
@@ -97,7 +97,9 @@ int main(int argc, char *argv[]) {
         static const char virtualization_consoles[] =
                 "hvc0\0"
                 "xvc0\0"
-                "hvsi0\0";
+                "hvsi0\0"
+                "sclp_line0\0"
+                "ttysclp0\0";
 
         _cleanup_free_ char *active = NULL;
         const char *j;
@@ -147,7 +149,7 @@ int main(int argc, char *argv[]) {
                                         t = tty;
 
                                 /* Then, make sure it's actually a pty */
-                                t = path_startswith(tty, "pts/");
+                                t = path_startswith(t, "pts/");
                                 if (!t)
                                         continue;