richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
923a60
From b10c083e9b9de46b54873780f73dce57fa1b6d4f Mon Sep 17 00:00:00 2001
923a60
From: Michal Sekletar <msekleta@redhat.com>
923a60
Date: Tue, 5 Sep 2017 14:53:25 +0200
923a60
Subject: [PATCH] units: order container and console getty units after
923a60
 getty-pre.target
923a60
923a60
(cherry picked from commit 45e27532971ac84e835a2879df510a581f933fcd)
923a60
923a60
Related: #1173080
923a60
---
923a60
 units/console-getty.service.m4.in    | 2 +-
923a60
 units/container-getty@.service.m4.in | 2 +-
923a60
 2 files changed, 2 insertions(+), 2 deletions(-)
923a60
923a60
diff --git a/units/console-getty.service.m4.in b/units/console-getty.service.m4.in
923a60
index 413d94094b..61ecf89517 100644
923a60
--- a/units/console-getty.service.m4.in
923a60
+++ b/units/console-getty.service.m4.in
923a60
@@ -11,7 +11,7 @@ Documentation=man:agetty(8)
923a60
 After=systemd-user-sessions.service plymouth-quit-wait.service
923a60
 ConditionPathExists=/dev/console
923a60
 m4_ifdef(`HAVE_SYSV_COMPAT',
923a60
-After=rc-local.service
923a60
+After=rc-local.service getty-pre.target
923a60
 )m4_dnl
923a60
 Before=getty.target
923a60
 
923a60
diff --git a/units/container-getty@.service.m4.in b/units/container-getty@.service.m4.in
923a60
index e126f3a489..4395ef5cec 100644
923a60
--- a/units/container-getty@.service.m4.in
923a60
+++ b/units/container-getty@.service.m4.in
923a60
@@ -10,7 +10,7 @@ Description=Container Getty on /dev/pts/%I
923a60
 Documentation=man:agetty(8) man:machinectl(1)
923a60
 After=systemd-user-sessions.service plymouth-quit-wait.service
923a60
 m4_ifdef(`HAVE_SYSV_COMPAT',
923a60
-After=rc-local.service
923a60
+After=rc-local.service getty-pre.target
923a60
 )m4_dnl
923a60
 Before=getty.target
923a60
 IgnoreOnIsolate=yes