The password will change after each reboot

Besides the root user, I added another user and set its password to “coreelec” and then created the image.
After that, I booted the device and changed my own user password.
But the password will change to ‘coreelec’ after each reboot, and the root user is fine.

Any suggestions to sovle this?
Many thanks

I think only user root can be changed because of this https://github.com/CoreELEC/CoreELEC/blob/coreelec-9.0/packages/sysutils/systemd/scripts/usercache-setup#L17
It took original file, changes root password and save a file. You will have to copy this line and change user root with your new user.

1 Like

Thank you for this helpful answer.