All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Using users/groups from another recipe than the one creating them
@ 2014-05-23 10:38 Peter Kjellerstedt
  2014-06-09 13:39 ` Peter Kjellerstedt
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Kjellerstedt @ 2014-05-23 10:38 UTC (permalink / raw)
  To: OE Core (openembedded-core@lists.openembedded.org)

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Peter Kjellerstedt
> Sent: den 19 maj 2014 10:15
> To: OE Core (openembedded-core@lists.openembedded.org)
> Subject: [OE-core] Using users/groups from another recipe than the one
> creating them
> 
> 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

*ping* 

Doesn't anyone know how users and groups are supposed to work?

//Peter



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Using users/groups from another recipe than the one creating them
@ 2014-05-19  8:14 Peter Kjellerstedt
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Kjellerstedt @ 2014-05-19  8:14 UTC (permalink / raw)
  To: OE Core (openembedded-core@lists.openembedded.org)

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-10 10:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 10:38 Using users/groups from another recipe than the one creating them Peter Kjellerstedt
2014-06-09 13:39 ` Peter Kjellerstedt
2014-06-09 13:52   ` Martin Jansa
2014-06-09 14:50     ` Mark Hatle
2014-06-09 14:56       ` Martin Jansa
2014-06-09 14:47   ` Mark Hatle
2014-06-09 16:47     ` Peter Kjellerstedt
2014-06-09 17:02       ` Mark Hatle
2014-06-10 10:04         ` Peter Kjellerstedt
  -- strict thread matches above, loose matches on Subject: below --
2014-05-19  8:14 Peter Kjellerstedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.