Skip to content

useradd fixes, tests and documentation

Eilís 'pidge' Ní Fhlannagáin openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3useradd: Fix issues with useradd dependenciesmeta-selftest/recipes-test/selftest-users/creategroup1.bb meta-selftest/recipes-test/selftest-users/creategroup2.bb meta-selftest/recipes-test/selftest-users/useraddbadtask.bb +2 more+114 -13 replies
2/3usergrouptests.py: Add test for switching between static-idsmeta/lib/oeqa/selftest/cases/usergrouptests.py+37 -80 replies
3/3variables.rst: Add USERADD_DEPENDSdocumentation/ref-manual/variables.rst+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] useradd fixes, tests and documentation

This patch series fixes and/or tests for some issues in useradd dependencies. It adds a new variable "USERADD_DEPENDS" that is required now for recipes that have dependencies on other recipes useradd.

Fixes/Tests:
Bug 13419 - recipes that add users to groups cannot rely on other recipes creating those groups (when population from sstate happens) Bug 13904 - do_prepare_recipe_sysroot: postinst-useradd-* does not run in order of dependency and sometimes fails Bug 13279 - Make sure users/groups exist for package_write_* tasks
Bug 15084 - For some reason using of same user in two recipes does not work properly

Tests:
Bug 14961 - addtask between do_populate_sysroot and do_package breaks useradd class

Documentation for useradd is also included.

Eilís 'pidge' Ní Fhlannagáin (3):
useradd: Fix issues with useradd dependencies usergrouptests.py: Add test for switching between static-ids variables.rst: Add USERADD_DEPENDS

 documentation/ref-manual/variables.rst        | 15 +++++
 .../selftest-users/creategroup1.bb            | 32 +++++++++++
 .../selftest-users/creategroup2.bb            | 33 +++++++++++
 .../selftest-users/useraddbadtask.bb          | 20 +++++++
 meta/classes/useradd.bbclass                  |  4 +-
 .../lib/oeqa/selftest/cases/usergrouptests.py | 55 +++++++++++++++++++
 6 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 meta-selftest/recipes-test/selftest-users/creategroup1.bb
 create mode 100644 meta-selftest/recipes-test/selftest-users/creategroup2.bb
 create mode 100644 meta-selftest/recipes-test/selftest-users/useraddbadtask.bb
 create mode 100644 meta/lib/oeqa/selftest/cases/usergrouptests.py
Signature · 1 line
2.34.1