summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2016-08-16 11:16:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-14 22:22:07 +0100
commit5f8c1686a87dbd5b5c2eb634d190a74ec4b2324f (patch)
tree5287b75c861c5c3cd54a34e3c2ec7fcc64811b95 /meta/classes
parent996aaf93ffd366af571581573f3f993e45b9fcea (diff)
downloadpoky-5f8c1686a87dbd5b5c2eb634d190a74ec4b2324f.tar.gz
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. (From OE-Core rev: 936150306cb13022edcadf862947c357932e80ee) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/useradd.bbclass2
1 files changed, 1 insertions, 1 deletions
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 () {
125 125
126userdel_sysroot_sstate () { 126userdel_sysroot_sstate () {
127if test "x${STAGING_DIR_TARGET}" != "x"; then 127if test "x${STAGING_DIR_TARGET}" != "x"; then
128 if [ "${BB_CURRENTTASK}" = "configure" -o "${BB_CURRENTTASK}" = "clean" ]; then 128 if [ "${BB_CURRENTTASK}" = "clean" ]; then
129 export PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${STAGING_DIR_TARGET}${localstatedir}/pseudo ${STAGING_DIR_NATIVE}${bindir_native}/pseudo" 129 export PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${STAGING_DIR_TARGET}${localstatedir}/pseudo ${STAGING_DIR_NATIVE}${bindir_native}/pseudo"
130 OPT="--root ${STAGING_DIR_TARGET}" 130 OPT="--root ${STAGING_DIR_TARGET}"
131 131