summaryrefslogtreecommitdiff
path: root/meta/classes/useradd.bbclass
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-13 15:17:32 +0100
commit936150306cb13022edcadf862947c357932e80ee (patch)
tree32ef1c418de2a672a2f762482ecd25d70d5b5660 /meta/classes/useradd.bbclass
parentac8f1e58ca3a0945795087cad9443be3e3e6ead8 (diff)
downloadopenembedded-core-936150306cb13022edcadf862947c357932e80ee.tar.gz
openembedded-core-936150306cb13022edcadf862947c357932e80ee.tar.bz2
openembedded-core-936150306cb13022edcadf862947c357932e80ee.zip
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 <jslater@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-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 () {
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}"