debian/console-conf@.service: use triggering conditions, make recovery marker file one

Use triggering conditions for controlling when console-conf should run. We
effectively want it to start if there is no /var/lib/console-conf/complete
file *or* the snapd recovery marker file exists.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This commit is contained in:
Maciej Borzecki 2020-05-13 18:24:27 +02:00
parent 71ee369c7f
commit 06de80cf60
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ After=core18.start-snapd.service core.start-snapd.service
After=snapd.recovery-chooser-trigger.service
IgnoreOnIsolate=yes
ConditionPathExists=/dev/tty0
ConditionPathExists=!/var/lib/console-conf/complete
ConditionPathExists=|!/var/lib/console-conf/complete
ConditionPathExists=|/run/snapd-recovery-chooser-triggered
StartLimitInterval=0
[Service]