[kmscon-devel] [PATCH] systemd: take over for autovt@ when enabled

David Herrmann dh.herrmann at gmail.com
Mon Jul 22 05:49:08 PDT 2013


Hi

On Mon, Jul 22, 2013 at 2:44 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Mon, Jul 22, 2013 at 2:35 PM, David Herrmann <dh.herrmann at gmail.com> wrote:
>> The thing is, "systemctl disable"
>> doesn't honor "Alias" lines. So if I add this alias and a user does
>> "systemctl enable kmscon at tty1.service", a following "systemctl disable
>> kmscon@<whatever>" doesn't remove this alias again.
>
> Hm, I'm not able to reproduce this problem:
>
> # systemctl enable kmsconvt at tty1.service
> ln -s '/etc/systemd/system/kmsconvt at .service'
> '/etc/systemd/system/autovt at .service'
> ln -s '/etc/systemd/system/kmsconvt at .service'
> '/etc/systemd/system/getty.target.wants/kmsconvt at tty1.service'
> # systemctl disable kmsconvt at tty1.service
> rm '/etc/systemd/system/getty.target.wants/kmsconvt at tty1.service'
> rm '/etc/systemd/system/autovt at .service'
>
> Could this have been fixed recently, or are you seeing something different?

You need to modify your "Alias" line (notice the %i):
  Alias=autovt@%i.service
Otherwise a simple "systemctl enable kmsconvt at tty4.service" would
enable kmscon on _all_ TTYs.

With this in place, the "systemctl disable" no longer works correctly.

Thanks
David


More information about the kmscon-devel mailing list