[yocto] Add custom user to custom group in bitbake recipe

Parthiban Nallathambi pn at denx.de
Fri Mar 2 03:36:00 PST 2018


Hello All,

I have created a custom group e.g "grp1" in my application recipe say 
"app.bb".

GROUPADD_PARAM_${PN} = "grp1"

I am trying to add my custom user e.g: "user1" to this group "grp1" in 
"space.bb".

USERADD_PARAM_${PN} = "-d ${localstatedir}/lib/space/ -s /bin/false -G 
grp1 -U user1"

The useradd command failed: "useradd: group 'grp1' does not exist". I 
have also tried adding DEPENDS_${PN} = "app" in space.bb, but it doesn't 
help.

How can I add my custom user to my custom group in bitbake recipe?

Question in Stackoverflow: 
https://stackoverflow.com/questions/49068076/yocto-add-custom-user-to-custom-group

-- 
Thanks,
Parthiban Nallathambi

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de



More information about the yocto mailing list