richardphibel / rpms / systemd

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