Skip to content

Commit d75f001

Browse files
committed
use the calling user UID:GID as portage inside the container
The docker container creates the distfiles as "portage" user (UID 250) in the host. This produces an error if then a container is launched as podman. With this ugly hack we can get docker to fetch distfiles as the calling user which avoids an error if then podman is used.
1 parent 9ad4594 commit d75f001

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ebuildtester/docker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def _tweak_settings(self):
261261

262262
# Avoid wasting time generating the whole set
263263
self.execute('echo "C.UTF-8 UTF-8" > /etc/locale.gen')
264+
self.execute(f'sed -i "s/250/{os.getuid()}/g" /etc/passwd')
264265

265266
def _get_repo_names(self, overlay_dirs):
266267
"""Get repo names from local overlay settings."""

0 commit comments

Comments
 (0)