From 9aeac5c62397517cabe829f8642a64246e228b6e Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 30 Mar 2017 10:39:16 +0200 Subject: [PATCH] serial-getty@.service.m4: add Conflicts=/Before= against rescue.service (#5632) Commit 5ed020d8d10fc100c68edddb519f085b7397a45c already fixed this issue for getty@.service but forgot serial console. Note that this is not needed for emergency target as the sysinit target conflicts against this target already. --- units/serial-getty@.service.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4 index 4522d0d..609c5b6 100644 --- a/units/serial-getty@.service.m4 +++ b/units/serial-getty@.service.m4 @@ -21,6 +21,12 @@ After=rc-local.service Before=getty.target IgnoreOnIsolate=yes +# IgnoreOnIsolate causes issues with sulogin, if someone isolates +# rescue.target or starts rescue.service from multi-user.target or +# graphical.target. +Conflicts=rescue.service +Before=rescue.service + [Service] ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM Type=idle -- 2.7.4