Re: extrausers-bbclass: plaintext password (since shadow update to 4.9)
I have already tried many things to pass the hash escaped to the extrausers-bbclass.
But I have not found a way to set the password with EXTRA_USERS_PARAMS.
Do you know a working variant?
Von: Peter Bergin <peter@...>
Gesendet: Montag, 30. August 2021 22:52
An: Matthias Klein <matthias.klein@...>; yocto@...
Betreff: Re: [yocto] extrausers-bbclass: plaintext password (since shadow update to 4.9)
On 2021-08-30 14:54, Matthias Klein wrote:
Hello,You have to escape the password string in the recipe. Use '\\\$' to escape the '$' token. There are some levels of evaluation of the expression and that's the reason for multiple '\'. Just iterate until you have the correct string in the shadow file, also check the log.do_rootfs where you can see the parameters to usermod.