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:
parent
06de80cf60
commit
bd859a9a4b
|
@ -17,6 +17,9 @@ if [ -e /run/snapd-recovery-chooser-triggered ]; then
|
||||||
# when recovery chooser is invoked it takes over the terminal
|
# when recovery chooser is invoked it takes over the terminal
|
||||||
exec /usr/lib/snapd/snap-recovery-chooser
|
exec /usr/lib/snapd/snap-recovery-chooser
|
||||||
fi
|
fi
|
||||||
|
if [ -e /var/lib/console-conf/complete ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then
|
if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then
|
||||||
|
|
Loading…
Reference in New Issue