rootfsinstall.sh: fix for password setting using chpasswd
This commit is contained in:
parent
fbd9a84e42
commit
3bdcf49802
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user