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).
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.
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.