Change root parameters in recipe

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change root parameters in recipe

Jump to solution
3,486 Views
nicolassalmin
Contributor I

Dear all,

It's my first post and i'm new with Yocto project.

So, I have some trouble and I hope that somebody can help me ...

I would like to change root group in order to use an usb camera. (root need to be in plugdev group). Some examples are available here​ and i have used them to write my recipe :

SUMMARY = "Add root user to plugdev group"

DESCRIPTION = "This recipe add root user to plugdev group (for  camera support)"

inherit extrausers

# Add root user to plugdev group

EXTRA_USERS_PARAMS = "\

     usermod -a -G plugdev root; \

     "

There is no error during the build but, on the target root is not in plugdev group

Thanks for your help

Have a good day,

Nicolas

Labels (1)
1 Solution
2,416 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nicolas SALMIN,

Have you tried either adding these to the image recipe itself or to the local.conf file (using INHERIT += "extrausers" instead of just inherit in lowercase)? I think the problem might be that these settings work on a global or image level.

Let us know of your findings!

Regards,

View solution in original post

0 Kudos
Reply
2 Replies
2,417 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nicolas SALMIN,

Have you tried either adding these to the image recipe itself or to the local.conf file (using INHERIT += "extrausers" instead of just inherit in lowercase)? I think the problem might be that these settings work on a global or image level.

Let us know of your findings!

Regards,

0 Kudos
Reply
2,416 Views
nicolassalmin
Contributor I

Hello gusarambula,

Thank you for all your advice it's works !

For information i have changed root user group/home directory by adding these to the image recipe as you told. It works also with a bash script in init directory.

Thanks again !

Regards,