]> code.ossystems Code Review - openembedded-core.git/commitdiff
useradd: remove preinst script referring to recipe sysroot
authorMaxin B. John <maxin.john@intel.com>
Tue, 9 May 2017 16:19:20 +0000 (19:19 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 May 2017 11:21:31 +0000 (12:21 +0100)
Remove recipe-specific-sysroot details from the preinst scripts
generated by useradd.bbclass.

This was added to match the default from bitbake.conf. Unlike the default
case, the dependencies used by useradd mean that a default passwd/group
file is always present. This means we don't need the native sysroot fallback.

Fixes [YOCTO #11460]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd.bbclass

index 92e45ff9bcbda75944d7dfc24aa8484be733e96d..6017ded8601a29dcef2153b060811a596a8c89d5 100644 (file)
@@ -32,7 +32,7 @@ if test "x$D" != "x"; then
        fi
 
        # user/group lookups should match useradd/groupadd --root
-       export PSEUDO_PASSWD="$SYSROOT:${STAGING_DIR_NATIVE}"
+       export PSEUDO_PASSWD="$SYSROOT"
 fi
 
 # If we're not doing a special SSTATE/SYSROOT install