rootfsinstall.sh: fix for password setting using chpasswd

This commit is contained in:
Silvan Calarco 2017-11-15 14:38:08 +01:00
parent fbd9a84e42
commit 3bdcf49802

View File

@ -414,7 +414,7 @@ if [ "${SAVE_ROOT_PARTUUID}" -a "${GROWIMAGE}" ]; then
fi
if [ "$SETUSERPASSWORD" ]; then
echo "$SETUSERPASSWORD" | chroot $ROOTMP chpasswd || {
echo "$SETUSERPASSWORD" | chroot $ROOTMP chpasswd -m || {
echo "ERROR: unable to set user password; aborting."
exit 1
}