Hi Robert,

I had tried what said before and failed to make it work. And I retried this 
solution after I got information from you. It works perfectly now. Thank you!

Best regards

Ben GUAN
ST-FIR/ENG1-Zhu  

-----Original Message-----
From: Robert Yang [mailto:liezhi.y...@windriver.com] 
Sent: Wednesday, December 06, 2017 4:27 PM
To: GUAN Ben (ST-FIR/ENG1-Zhu) <ben.g...@cn.bosch.com>; 
openembedded-core@lists.openembedded.org
Cc: Jonas Mark (ST-FIR/ENG1) <mark.jo...@de.bosch.com>
Subject: Re: [OE-core] How to add group for multiple recipes

Hi Ben,

On 12/06/2017 04:12 PM, GUAN Ben (ST-FIR/ENG1-Zhu) wrote:
> Hello,
> 
> In oe-core, there are some default groups provided by recipe "base-passwd". 
> Any other recipes could refer to these groups when they want to create a new 
> user.
> 
> Now we have a requirement: there are several recipes which create their own 
> users, and they shall belongs to a common group. How could we add this group? 
> It seems that groups or users created in a recipe are only visible to the 
> same recipe. Other recipes cannot refer to them (e.g. using chown/chgrp).
> 
> We already tried to add a recipe which only generates the group and added 
> this to DEPENDS of the other recipes. But it seem as if the group was not 
> generated in time. When the other recipes ran, the group was not there. But 
> the final image contained the group.

What's the error, please ? Where did you check the group ? If you have added the
the recipe to another's DEPENDS, then the group should be in another recipe's
recipe-sysroot.

// Robert

> 
> Best regards
> 
> Ben GUAN
> ST-FIR/ENG1-Zhu
> 
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to