Merge pull request #740 from anonymouse64/feature/uc20-no-install-mode-console-conf

bin/console-conf-wrapper: don't do anything during install mode
This commit is contained in:
Dimitri John Ledkov 2020-04-30 23:58:44 +01:00 committed by GitHub
commit f5b477ab15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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