<div dir="ltr">Both of your recipes will need to depend on the user-creating recipe.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 October 2017 at 07:45, Fabien Lahoudere <span dir="ltr"><<a href="mailto:fabien.lahoudere@collabora.co.uk" target="_blank">fabien.lahoudere@collabora.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="h5"><div>On Tue, 2017-10-10 at 15:31 -0700, <a href="mailto:Aaron_Wright@selinc.com" target="_blank">Aaron_Wright@selinc.com</a> wrote:</div><blockquote type="cite"><tt><font size="2">> Hi<br>
> <br>
> I want to use the same user in two different recipe. <br>
> I create the user in recipe A.bb and it works fine.<br>
> Now I want to use the same user in B.bb so I add DEPENDS = "A"
<br>
> thinking that sysroot will be<br>
> populated with A.bb users.<br>
> <br>
> But when I bitbake the recipe, user is not found. <br>
> I conclude that I have to use USERADD_* in each recipe, right?<br>
> <br>
> What happen if I use different USERADD_PARAM_${PN} in each recipe?<br>
> <br>
> I also try to use EXTRA_USERS_PARAMS but without success?<br>
> <br>
> Is there a way to populate sysroot with users?<br>
> <br>
> Thanks<br>
> <br>
> -- <br>
> Fabien<br>
> -- <br>
</font></tt>
<br><tt><font size="2">When I have this issue I just make a separate recipe
that creates the user, and have all the other recipes depend on it.</font></tt>
<br><tt><font size="2">That way the user is always created with the same
parameters, without possibility of getting out of sync.</font></tt></blockquote><div><br></div></div></div><div>Thanks Aaron</div><div><br></div><div>Yes it is exactly what we do before with morty but now we use pyro and the sysroot is per recipe and not common to all recipe.</div><div>And I search in the sysroot and the users created in recipe A are not applied to /etc/passwd.</div></div><br>--<br>
______________________________<wbr>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.<wbr>org/listinfo/yocto</a><br>
<br></blockquote></div><br></div>