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 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 saying the "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: w...@denx.de
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to