<div dir="ltr">nice<div><br></div><div>Acked-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 1:58 PM, Ross Burton <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Back in the dark days before recipe-specific-sysroots the paths being passed in<br>
this manual construction of the pseudo environment made sense, but now they&#39;re<br>
incorrect and result in pseudo writing to two different databases during a<br>
single build.  The result is that pseudo doesn&#39;t follow changes to /etc/passwd<br>
in the sysroot, and warns in the logs.<br>
<br>
Remove the PSEUDO_LOCALSTATEDIR assignment and inherit the correct assignment in<br>
FAKEROOTENV.<br>
<br>
Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
---<br>
 meta/classes/useradd.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass<br>
index 6017ded8601..0f51e5522b1 100644<br>
--- a/meta/classes/useradd.bbclass<br>
+++ b/meta/classes/useradd.bbclass<br>
@@ -100,7 +100,7 @@ useradd_sysroot () {<br>
        # Pseudo may (do_prepare_recipe_sysroot) or may not (do_populate_sysroot_setscene) be running<br>
        # at this point so we&#39;re explicit about the environment so pseudo can load if<br>
        # not already present.<br>
-       export PSEUDO=&quot;${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${<wbr>STAGING_DIR_TARGET}${<wbr>localstatedir}/pseudo ${PSEUDO_SYSROOT}${bindir_<wbr>native}/pseudo&quot;<br>
+       export PSEUDO=&quot;${FAKEROOTENV} ${PSEUDO_SYSROOT}${bindir_<wbr>native}/pseudo&quot;<br>
<br>
        # Explicitly set $D since it isn&#39;t set to anything<br>
        # before do_prepare_recipe_sysroot<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>