[OE-core] How to add group for multiple recipes

GUAN Ben (ST-FIR/ENG1-Zhu) Ben.Guan at cn.bosch.com
Fri Dec 8 03:14:55 UTC 2017


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.yang at windriver.com] 
Sent: Wednesday, December 06, 2017 4:27 PM
To: GUAN Ben (ST-FIR/ENG1-Zhu) <Ben.Guan at cn.bosch.com>; openembedded-core at lists.openembedded.org
Cc: Jonas Mark (ST-FIR/ENG1) <Mark.Jonas at 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
> 


More information about the Openembedded-core mailing list