Change root parameters in recipe

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Change root parameters in recipe

跳至解决方案
5,160 次查看
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

标签 (1)
1 解答
4,090 次查看
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 项奖励
回复
2 回复数
4,091 次查看
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 项奖励
回复
4,090 次查看
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,