From: Joe Slater Date: Tue, 16 Aug 2016 18:16:20 +0000 (-0700) Subject: useradd: do not delete users and groups during configure X-Git-Tag: uninative-1.4~157 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=936150306cb13022edcadf862947c357932e80ee;p=openembedded-core.git useradd: do not delete users and groups during configure If two recipes both create the same users and groups, the second recipe can delete items created by the first causing things like "chown" to fail for the first recipe. Signed-off-by: Joe Slater Signed-off-by: Ross Burton --- diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index e24b1c5b64..bf62ada8b5 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass @@ -125,7 +125,7 @@ useradd_sysroot_sstate () { userdel_sysroot_sstate () { if test "x${STAGING_DIR_TARGET}" != "x"; then - if [ "${BB_CURRENTTASK}" = "configure" -o "${BB_CURRENTTASK}" = "clean" ]; then + if [ "${BB_CURRENTTASK}" = "clean" ]; then export PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${STAGING_DIR_TARGET}${localstatedir}/pseudo ${STAGING_DIR_NATIVE}${bindir_native}/pseudo" OPT="--root ${STAGING_DIR_TARGET}"