useradd: do not delete users and groups during configure
PATCH 1/1 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.
--- meta/classes/useradd.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/useradd.bbclass +1 -1
@@ -129,7 +129,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}"
Signature · 1 line
1.7.9.5
Quoted 15 lines · Joe Slater
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 <[email protected]>--- meta/classes/useradd.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/useradd.bbclass +0
-0
meta/classes/useradd.bbclass useradd_sysroot_sstate () { · line 135
Quoted 8 lines
meta/classes/useradd.bbclass +1
-1@@ -129,7 +129,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}"
I don't see this in oe-core/master[-next] yet.
Is there a better solution or should the recipes that create the user (ftp in this case), be modified some how?
Signature · 2 lines
# Randy MacLeod. SMTS, Linux, Wind River Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, Canada, K2K 2W5
Quoted 2 lines · Randy MacLeod
I don't see this in oe-core/master[-next] yet.
It's in mut so assuming it doesn't break anything may be in master next week.
Ross