[OE-core] Using users/groups from another recipe than the one creating them
Peter Kjellerstedt
peter.kjellerstedt at axis.com
Mon May 19 08:14:49 UTC 2014
Which assumption is correct: "a recipe A that depends on another
recipe B can use users/groups that B creates" or "all recipes must
create the users/groups they require themselves"?
The problem for us is that we have a lot of recipes that create
users and groups, and subsequently a number of other related recipes
that need to use those users and groups.
If the first assumption is correct then the useradd.bbclass needs to
be corrected so that it adds a dependency from do_install to
base-passwd:do_populate_sysroot and
base-passwd:do_populate_sysroot_setscene, because if either of those
tasks execute they will overwrite /etc/passwd and /etc/group,
effectively removing any users/groups that were created earlier...
On the other hand, if it is the second assumption that is correct,
then there should be QA tests in place to make sure all recipes
create the users/groups they use.
//Peter
More information about the Openembedded-core
mailing list