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:
parent
71ee369c7f
commit
06de80cf60
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue