Currently drop-ins cannot remove dependencies. Use a full override.

On Tue, Jun 6, 2017, 06:41 Nikos Chantziaras <[email protected]> wrote:

> Hello.
>
> I recently switched a Gentoo system from OpenRC to systemd. I'd like to
> keep tty1 (VT1) for login, and move the display manager (SDDM) to tty7.
> SDDM is configured for that, but the installed service file
> (/usr/lib/systemd/system/sddm.service) has this:
>
>    [Unit]
>    [email protected]
>
> If I edit that file directly and change it to:
>
>    [email protected]
>
> it works. systemd is prevented from stopping getty on tty1. I can login
> normally on VT1.
>
> However, this change gets lost on SDDM updates. So I'd like to override
> that. So I did:
>
>    systemctl edit sddm.service
>
> with this in it:
>
>    [Unit]
>    Conflicts=
>    [email protected]
>
> This successfully creates
> /etc/systemd/system/sddm.service.d/override.conf with the above contents.
>
> AFAIK, this should override "Conflicts" and prevent [email protected]
> from stopping. But it doesn't. When SDDM starts, tty1 is stopped. The
> only way to keep that from happening is to edit the installed
> sddm.service file directly.
>
> Does someone know why the override doesn't work?
>
> _______________________________________________
> systemd-devel mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-- 

Mantas Mikulėnas <[email protected]>
Sent from my phone
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to