<p dir="ltr">Currently drop-ins cannot remove dependencies. Use a full override.</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 6, 2017, 06:41 Nikos Chantziaras <<a href="mailto:realnc@gmail.com">realnc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
<br>
I recently switched a Gentoo system from OpenRC to systemd. I'd like to<br>
keep tty1 (VT1) for login, and move the display manager (SDDM) to tty7.<br>
SDDM is configured for that, but the installed service file<br>
(/usr/lib/systemd/system/sddm.service) has this:<br>
<br>
[Unit]<br>
Conflicts=getty@tty1.service<br>
<br>
If I edit that file directly and change it to:<br>
<br>
Conflicts=getty@tty7.service<br>
<br>
it works. systemd is prevented from stopping getty on tty1. I can login<br>
normally on VT1.<br>
<br>
However, this change gets lost on SDDM updates. So I'd like to override<br>
that. So I did:<br>
<br>
systemctl edit sddm.service<br>
<br>
with this in it:<br>
<br>
[Unit]<br>
Conflicts=<br>
Conflicts=getty@tty7.service<br>
<br>
This successfully creates<br>
/etc/systemd/system/sddm.service.d/override.conf with the above contents.<br>
<br>
AFAIK, this should override "Conflicts" and prevent getty@tty1.service<br>
from stopping. But it doesn't. When SDDM starts, tty1 is stopped. The<br>
only way to keep that from happening is to edit the installed<br>
sddm.service file directly.<br>
<br>
Does someone know why the override doesn't work?<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><p dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>><br>
Sent from my phone</p>
</div>