Abandon empty password
This commit is contained in:
parent
e89f9bc5f5
commit
997217983c
|
@ -1226,10 +1226,6 @@ export TMP=/tmp/ TMPDIR=/tmp/
|
|||
|
||||
username=$MY_USERNAME
|
||||
echo $"warning: creating initial user $username with well known password!"
|
||||
if [[ $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
|
||||
# on the mesh client don't use a password by default
|
||||
MY_PASSWORD=''
|
||||
fi
|
||||
password=$MY_PASSWORD
|
||||
chroot "$rootdir" adduser --gecos $username --disabled-password $username
|
||||
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
|
||||
|
|
Loading…
Reference in New Issue