Bug 66889 - Replace getty without creating a symlink.
Summary: Replace getty without creating a symlink.
Status: RESOLVED WORKSFORME
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 08:08 UTC by trusktr
Modified: 2013-07-14 22:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description trusktr 2013-07-14 08:08:49 UTC
I'm trying out kmscon, and in order for systemd-logind to replace getty@.service with kmscon@.service in each tty where get would otherwise run, etc/systemd/system/autovt@.service has to be symlinked to /usr/lib/systemd/system/kmsconvt@.service. This will cause tty1-6 to run kmscon instead of agetty (assuming NAutoVTs in logind.conf is at the default value of 6).

IMHO, having to make that symlink manually seems out of place, and that it should be achieved using systemd enable, like with other services.

I happened to notice that doing "systemd disable kmsconvt@.service" removes the symlink, but that "systemd enable kmsconvt@service" does nothing at all, so at least half the desired functionality is there.

Being able to enable kmscon by doing "systemd enable kmsconvt@.service" (which would automatically create the symlink) would be more intuitive and would make more sense from a use case perspective. 

Can the unit files for kmscon be set up in some way so that only systemd needs to be used to enable kmscon, without having to create the symlink manually?

If not, my feature request is for systemd to be modified so that such a use can be achieved for services like kmsconvt@.service that replace getty@.service, or other similar services (if any).
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-07-14 14:37:52 UTC
Adding [Install] Alias=autovt@.service works for me. 

# systemctl enable kmsconvt@.service
ln -s '/etc/systemd/system/kmsconvt@.service' '/etc/systemd/system/autovt@.service'
ln -s '/etc/systemd/system/kmsconvt@.service' '/etc/systemd/system/getty.target.wants/kmsconvt@.service'

This is the syntax that is supposed to work. If something is missing or broken, please report more specifics.
Comment 2 trusktr 2013-07-14 22:52:15 UTC
It worked. Thanks! I've this info on to kmscon.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.