crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
214 stars 96 forks source link

host uid contamination detected at do_package #71

Open seb832 opened 2 years ago

seb832 commented 2 years ago

Hi all,

I have this error message when I exit the poky container between the do_install and do_package tasks:

Path ./package is owned by uid 1001, gid 1001, which doesn't match any user/group on target. This may be due to host contamination.

I can reproduce the issue with different recipes for instance:

Run this command in the container: bitbake -c cleansstate connman && bitbake -c install connman && exit

Then, run again this command in the container: bitbake -c package connman

The command to run the container is: docker run --rm -it -v="$HOME:$HOME" --workdir="$PWD" crops/poky:debian-10

The weird thing is that if I add a sleep 20 before exiting the container, the problem is gone ! bitbake -c cleansstate connman && bitbake -c install connman && sleep 20 && exit

It works fine also if I never exit the container or without the container

I would really appreciate some help to understand what I am missing and if I could avoid the long delay before exiting the container.

Thanks Seb