[systemd-devel] Cannot override "Conflicts" variable without editing installed service file

Mantas Mikulėnas grawity at gmail.com
Tue Jun 6 04:17:53 UTC 2017


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

On Tue, Jun 6, 2017, 06:41 Nikos Chantziaras <realnc at gmail.com> 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]
>    Conflicts=getty at tty1.service
>
> If I edit that file directly and change it to:
>
>    Conflicts=getty at tty7.service
>
> 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=
>    Conflicts=getty at tty7.service
>
> This successfully creates
> /etc/systemd/system/sddm.service.d/override.conf with the above contents.
>
> AFAIK, this should override "Conflicts" and prevent getty at tty1.service
> 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
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-- 

Mantas Mikulėnas <grawity at gmail.com>
Sent from my phone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170606/cc167575/attachment.html>


More information about the systemd-devel mailing list