diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-14 18:56:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-14 18:56:55 +0100 |
commit | f212ac125fb0f8dda6ed9ac50b0c315dd4f58974 (patch) | |
tree | af0d02e95604de169248a5806d2ba07a14f7b8b3 /src/target.c | |
parent | 7a57b332d0a0b229c1c24278840aebd19efe9ffe (diff) |
getty: do not auto-spawn getty's on VC ttys if console=ttyN is used
https://bugzilla.redhat.com/show_bug.cgi?id=676885
Diffstat (limited to 'src/target.c')
-rw-r--r-- | src/target.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/target.c b/src/target.c index a73a989876..73130078d9 100644 --- a/src/target.c +++ b/src/target.c @@ -91,7 +91,12 @@ static int target_add_getty_dependencies(Target *t) { /* Automatically add in a serial getty on the kernel * console */ - if (t->meta.manager->console) { + if (t->meta.manager->console && !tty_is_vc(t->meta.manager->console)) { + + /* We assume that gettys on virtual terminals are + * started via manual configuration and do this magic + * only for non-VC terminals. */ + log_debug("Automatically adding serial getty for %s", t->meta.manager->console); if (!(n = unit_name_replace_instance(SPECIAL_SERIAL_GETTY_SERVICE, t->meta.manager->console))) return -ENOMEM; |