naccyde / rpms / systemd

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