Skip to content

Commit 969e2c4

Browse files
committed
fix: do not create group if GID is already taken
macOS uses GID 20 for staff but Linux uses it for dialout, so the build will fail because GID 20 is already used.
1 parent dc13295 commit 969e2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/containers/ci/ci-slim.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ RUN set -ex; \
106106
ARG USER_ID=1000 \
107107
GROUP_ID=1000
108108
RUN set -ex; \
109-
groupmod -g ${GROUP_ID} -n dash ubuntu; \
109+
getent group ${GROUP_ID} || groupmod -g ${GROUP_ID} -n dash ubuntu; \
110110
usermod -u ${USER_ID} -md /home/dash -l dash ubuntu; \
111111
chown ${USER_ID}:${GROUP_ID} -R /home/dash; \
112112
mkdir -p /src/dash && \

0 commit comments

Comments
 (0)