[yocto] [bitbake-devel] Yocto: Add custom user to custom group in bitbake recipe
Maxin B. John
maxin.john at intel.com
Fri Mar 2 07:47:14 PST 2018
Hi Parthiban,
On Fri, Mar 02, 2018 at 01:58:35PM +0100, Parthiban Nallathambi wrote:
> Hi Maxim,
>
> space.bb --> chromium recipe in https://github.com/OSSystems/meta-browser/tree/master/recipes-browser/chromium
>
> app.bb --> http-server.bb attached
>
> I have created a group "www" in http-server_0.10.0.bb and trying to add
> "chromium" user to this group in chromium-x11_%.bbappend.
As useradd documentation says,
for -G " The group name must exist. A group number must refer to an already existing group."
So, the "GROUPADD_PARAM_${PN} = "www", should be in
chromium-x11_%.bbappend before we use:
USERADD_PARAM_${PN} = "-d ${localstatedir}/lib/chromium -s /bin/false -G tty,video,input,www,www-data -U chromium
> But the useradd command is failed: group 'www' does not exit.
>
>
> On 03/02/2018 01:29 PM, Maxin B. John wrote:
<snip>
Best Regards,
Maxin
More information about the yocto
mailing list