mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] scripts: container.sh: map to UID/GUID 1000 in container
@ 2024-06-17 14:09 Ahmad Fatoum
  2024-06-18  6:14 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-06-17 14:09 UTC (permalink / raw)
  To: barebox; +Cc: rhi, str, Ahmad Fatoum

The script was inadvertently assuming that the ID of the user executing
it is 1000. This is not necessarily the case for the host system, but we
know it's the case inside the container. Thus map the user account
outside the container to 1000/1000 within the container.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 scripts/container.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/container.sh b/scripts/container.sh
index 6bfb070692f5..1a68f0a5fe01 100755
--- a/scripts/container.sh
+++ b/scripts/container.sh
@@ -40,5 +40,5 @@ fi
 exec podman run -it $volumes --rm \
 	-e TERM -e ARCH -e CONFIG -e JOBS -e LOGDIR -e REGEX \
 	-e KBUILD_OUTPUT -e LG_BUILDDIR \
-	-e KCONFIG_ADD -w "$PWD" --userns=keep-id \
+	-e KCONFIG_ADD -w "$PWD" --userns=keep-id:uid=1000,gid=1000 \
 	-- "$CONTAINER" "${@:-/bin/bash}"
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-18  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-17 14:09 [PATCH master] scripts: container.sh: map to UID/GUID 1000 in container Ahmad Fatoum
2024-06-18  6:14 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox