Re: error when try to use sudo command in recipe


Alexander Kanavin
 

Note that per its README, meta-virtualization has a dedicated mailing
list and an irc channel, so perhaps you could ask there?

https://git.yoctoproject.org/meta-virtualization/tree/README says

Mailing list: https://lists.yoctoproject.org/g/meta-virtualization
IRC: libera.chat #meta-virt channel

Alex

On Thu, 9 Feb 2023 at 19:45, SIMON BABY <simonkbaby@...> wrote:

Hello,



I was testing the meta-virtualization/recipes-demo/images/ app-container. I was able to build the container. But I am not sure where is the image created and how do we run the image using docker commands. I also see the .yaml files.

On the target I can see /usr/bin/flask-app. Below is the folder contents after bitbake.



bitbake app-container



build/tmp/work/armv8a-poky-linux/helloworld-flask$ ls

0.1-r0

/build/tmp/work/armv8a-poky-linux/helloworld-flask$ cd 0.1-r0/

build/tmp/work/armv8a-poky-linux/helloworld-flask/0.1-r0$ ls -ll

total 84

-rw-r--r-- 1 tdydev tdydev 65 Feb 7 11:58 configure.sstate

drwxr-xr-x 3 tdydev tdydev 4096 Feb 7 12:10 deploy-debs

drwxr-xr-x 2 tdydev tdydev 4096 Feb 7 11:38 deploy-source-date-epoch

-rwxrwxr-x 1 tdydev tdydev 518 Feb 2 14:24 flask-app

-rw-r--r-- 1 tdydev tdydev 511 Feb 7 11:58 flask-app-service.yaml

-rw-r--r-- 1 tdydev tdydev 178 Feb 7 11:58 flask-app.yaml

drwxr-xr-x 2 tdydev tdydev 4096 Feb 7 11:35 helloworld-flask-0.1

drwxr-xr-x 4 tdydev tdydev 4096 Feb 7 11:58 image

drwxr-xr-x 3 tdydev tdydev 4096 Feb 7 11:38 license-destdir

drwxr-xr-x 4 tdydev tdydev 4096 Apr 5 2011 package

drwxr-xr-x 10 tdydev tdydev 4096 Feb 7 12:10 packages-split

drwxr-xr-x 7 tdydev tdydev 4096 Apr 5 2011 pkgdata

drwxr-xr-x 7 tdydev tdydev 4096 Feb 7 11:58 pkgdata-pdata-input

drwxr-xr-x 7 tdydev tdydev 4096 Feb 7 11:58 pkgdata-sysroot

drwxrwxr-x 2 tdydev tdydev 4096 Feb 7 12:10 pseudo

drwxr-xr-x 5 tdydev tdydev 4096 Feb 7 12:10 recipe-sysroot

drwxr-xr-x 8 tdydev tdydev 4096 Feb 7 12:10 recipe-sysroot-native

drwxr-xr-x 2 tdydev tdydev 4096 Feb 7 11:35 source-date-epoch

drwxr-xr-x 2 tdydev tdydev 12288






Regards

Simon



On Sun, Feb 5, 2023 at 4:00 PM SIMON BABY via lists.yoctoproject.org <simonkbaby=gmail.com@...> wrote:

Hi Richard,

I added extra code in the recipe to print the sudo permissions to compare with actual permissions.

Regards
Simon



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