units: order getty units after getty-pre.target unconditionally

Those two units had this ordering conditionalized on HAVE_SYSV_COMPAT. This
seems strange. 45e2753297 added the ordering
differently for those two files without any comment, and I think it was just
pasted or scripted erroneously.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-19 15:05:30 +02:00
parent 64fe2aeaf7
commit ce0fe01f22
2 changed files with 4 additions and 4 deletions

View file

@ -10,9 +10,9 @@
[Unit]
Description=Console Getty
Documentation=man:agetty(8) man:systemd-getty-generator(8)
After=systemd-user-sessions.service plymouth-quit-wait.service
After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
{% if HAVE_SYSV_COMPAT %}
After=rc-local.service getty-pre.target
After=rc-local.service
{% endif %}
Before=getty.target

View file

@ -11,9 +11,9 @@
Description=Container Getty on /dev/pts/%I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=man:machinectl(1)
After=systemd-user-sessions.service plymouth-quit-wait.service
After=systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
{% if HAVE_SYSV_COMPAT %}
After=rc-local.service getty-pre.target
After=rc-local.service
{% endif %}
Before=getty.target
IgnoreOnIsolate=yes