Skip to content

Commit

Permalink
Allow using dev image as root
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
osteffenrh committed Dec 6, 2023
1 parent 0d94940 commit 304b901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fedora-39/fedora39_dev_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ user_gid=$(stat -c "%g" "${EDK2_DOCKER_USER_HOME}")
groupadd "${EDK2_DOCKER_USER}" -f -o -g "${user_gid}"
#
# - Add the user.
useradd "${EDK2_DOCKER_USER}" -u "${user_uid}" -g "${user_gid}" \
useradd "${EDK2_DOCKER_USER}" -o -u "${user_uid}" -g "${user_gid}" \
-G wheel -d "${EDK2_DOCKER_USER_HOME}" -M -s /bin/bash

echo "${EDK2_DOCKER_USER}":tianocore | chpasswd
Expand Down

0 comments on commit 304b901

Please sign in to comment.