Re: error when try to use sudo command in recipe


Alexander Kanavin
 

On Sun, 5 Feb 2023 at 05:15, SIMON BABY <simonkbaby@...> wrote:
Thank you for the reply.
I was trying to add the layer https://github.com/savoirfairelinux/meta-embedded-containers in my yocto build. Below recipe uses sudo commands.

https://github.com/savoirfairelinux/meta-embedded-containers/blob/b131baa90291c159d3a725b8d66786c85964556c/recipes-support/container-image/container-image.bb

while building it fails at sudo command and getting the error below.

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
That layer is not maintained and you should not be using it. If you
want to use containers, meta-virtualization is the supported way.

Alex

Join yocto@lists.yoctoproject.org to automatically receive all group messages.