Merge pull request #770 from bboozzoo/bboozzoo/run-chooser-when-disabled

console-conf: always run when triggered for the chooser
This commit is contained in:
Dimitri John Ledkov 2020-05-18 12:16:06 +01:00 committed by GitHub
commit ef838cabd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,9 @@ if [ -e /run/snapd-recovery-chooser-triggered ]; then
# when recovery chooser is invoked it takes over the terminal
exec /usr/lib/snapd/snap-recovery-chooser
fi
if [ -e /var/lib/console-conf/complete ]; then
exit 0
fi
fi
if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then

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]