bin/console-conf-wrapper: don't do anything during install mode
For now, we want to just block console-conf from doing anything in install mode, i.e. allowing a user to login etc. but eventually we will probably want to show more useful status information from snapd during the install mode process. Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
This commit is contained in:
parent
43081d0dd5
commit
3238dba4d2
|
@ -19,6 +19,11 @@ if [ -e /run/snapd-recovery-chooser-triggered ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if grep -q 'snapd_recovery_mode=install' /proc/cmdline ; then
|
||||
echo "Installing the system, please wait for reboot"
|
||||
sleep infinity
|
||||
fi
|
||||
|
||||
if [ "$(snap managed)" = "true" ]; then
|
||||
# check if we have extrausers that have no password set
|
||||
if grep -qE '^[-a-z0-9+.-_]+:x:' /var/lib/extrausers/passwd && ! grep -qE '^[-a-z0-9+.-_]+:\$[0-9]+\$.*:' /var/lib/extrausers/shadow; then
|
||||
|
|
Loading…
Reference in New Issue