On Wed, Aug 23, 2023 at 03:50 PM, Crane wrote:

>
> On Wed, Aug 23, 2023 at 03:45 AM, Mauro wrote:
> 
> > 
> > You can put the encrypted password (the result of the "openssl passwd -6
> > root" command) directly in the variable, taking care to put a "\" before
> > the three "$" contained in the string. Something like this:
> > 
> > EXTRA_USERS_PARAMS=" usermod -p
> >
> '\$6\$CEM0hANiVS9VXN8N\$Q9XK1KTpq2faq2fNbSRLNeeA4mmQsl8g1Gwl3QnTPlRPb5ljCAa./bbhffcthXxUen4jSFL6HKGQPlHZNQkfA/'
> > root; useradd -p
> >
> '\$6\$5wVybJkbuowR0iMi\$tnEJEEbXbcRfksKRSt7rjlY1hRERrjqFOlCaa0s1ivISxAHT7MFdcnZvVbRHgkqRSYzA1oLUxtR0LuvDTMPR5/'
> > crane; "
> 
> Tried as well. And a \ is added automatically in front of $, so no need to add
> it. But still not working.
> There must be something else missing. Anyway to debug in this case?
>

>From testing I have observed that the extrausers does not work from a recipe, 
>while useradd works correctly from a recipe.
The extrausers should work as expected from within the distribution 
description, so you might want to try that.

For debugging you could print the bitbake variables to screen (-e) and grep on 
the EXTRA_USERS_PARAMS.

Hope this is will help you solving the issue.

-- 
With kind regards,

Jeffrey Simons

Software Engineer
Royal Boon Edam International B.V.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60870): https://lists.yoctoproject.org/g/yocto/message/60870
Mute This Topic: https://lists.yoctoproject.org/mt/100887124/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to