[yocto] extrausers working from image file .bb but not from .bbappend

Chris Morgan chmorgan at gmail.com
Tue Apr 21 18:27:06 PDT 2015


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.

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.

Chris



More information about the yocto mailing list