mvo's patch to show a message until a user has a password
This commit is contained in:
parent
c3a5a78784
commit
cbd2aa5321
|
@ -0,0 +1,2 @@
|
|||
Please login to this system via ssh.
|
||||
|
|
@ -8,6 +8,18 @@ trap true HUP INT QUIT TSTP
|
|||
# happened and need to force it on. Yay UNIX!
|
||||
stty icrnl -echo
|
||||
|
||||
# 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
|
||||
cat /usr/share/subiquity/console-conf-ssh-login-only
|
||||
# FIXME: do something better
|
||||
read REPLY
|
||||
fi
|
||||
|
||||
# all done and the user has a password
|
||||
if [ -e /var/lib/console-conf/complete ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$(snap managed)" = "true" ]; then
|
||||
touch /var/lib/console-conf/complete
|
||||
exit 0
|
||||
|
|
|
@ -4,7 +4,6 @@ After=systemd-user-sessions.service plymouth-quit-wait.service
|
|||
After=rc-local.service
|
||||
IgnoreOnIsolate=yes
|
||||
ConditionPathExists=/dev/tty0
|
||||
ConditionPathExists=!/var/lib/console-conf/complete
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONPATH=/usr/share/subiquity
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
bin/console-conf-tui usr/share/subiquity
|
||||
bin/console-conf-wait usr/share/subiquity
|
||||
bin/console-conf-ssh-login-only usr/share/subiquity
|
||||
bin/console-conf-wrapper usr/share/subiquity
|
||||
usr/share/subiquity/console_conf
|
||||
|
|
Loading…
Reference in New Issue