Hi Chris

> On Apr 21, 2015, at 6:27 PM, Chris Morgan <[email protected]> wrote:
> 
> Hello.
> 
> Based on 
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-classes-extrausers
> and the .bbclass file I've added this to a .bbappend,
> pulseaudio_%.bbappend actually so root user can use pactl when
> pulseaudio is running in system mode:
> 
> inherit extrausers
> EXTRA_USERS_PARAMS = "\
>        usermod -a -G audio root \
> "
> 
> 
> From the .bbappend this isn't working. If instead I add it to our
> custom image file recipe (image-blah.bb) it does work.

its a image level config so thats right behavior.

> 
> I'm not sure how to debug or why it isn't working from the .bbappend. 
> Thoughts?
> 
> 
> 
> Also, the documentation in the .bbclass seems out of date but wanted to 
> confirm:
> 
> http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/classes/extrausers.bbclass
> 
> shows:
> 
> Below is an example showing how to use this functionality.
> # INHERIT += "extrausers"
> # EXTRA_USERS_PARAMS = "\
> # useradd -p '' tester; \
> # groupadd developers; \
> # userdel nobody; \
> # groupdel -g video; \
> # groupmod -g 1020 developers; \
> # usermod -s /bin/sh tester; \
> # "
> 
> This INHERIT vs. inherit seems like it could be something that changed
> in bitbake in the past but was left over in the .bbclass.

its correct because its assuming you are adding it to config metadata and not 
recipe metadata
may be location is not right. Send a patch

> 
> Chris
> -- 
> _______________________________________________
> yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to