bin/console-conf-wrapper: check /var/lib/console-conf/complete when in recovery

Once console-conf is started for recovery chooser, exit early when the recovery
chooser does not exist.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This commit is contained in:
Maciej Borzecki 2020-05-13 18:27:20 +02:00
parent 06de80cf60
commit bd859a9a4b
1 changed files with 3 additions and 0 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