Skip to content

Commit 304b901

Browse files
committed
Allow using dev image as root
Don't abort the entrypoint script if the user-id already exists. This allows using the dev images as root or when using Podman, which does some user mapping already. See issue tianocore#76 and PR tianocore#77. Signed-off-by: Oliver Steffen <[email protected]>
1 parent 0d94940 commit 304b901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fedora-39/fedora39_dev_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ user_gid=$(stat -c "%g" "${EDK2_DOCKER_USER_HOME}")
3939
groupadd "${EDK2_DOCKER_USER}" -f -o -g "${user_gid}"
4040
#
4141
# - Add the user.
42-
useradd "${EDK2_DOCKER_USER}" -u "${user_uid}" -g "${user_gid}" \
42+
useradd "${EDK2_DOCKER_USER}" -o -u "${user_uid}" -g "${user_gid}" \
4343
-G wheel -d "${EDK2_DOCKER_USER_HOME}" -M -s /bin/bash
4444

4545
echo "${EDK2_DOCKER_USER}":tianocore | chpasswd

0 commit comments

Comments
 (0)