Skip to content

Commit

Permalink
Fedora-40: Adjust ownership of Python venv (#104)
Browse files Browse the repository at this point in the history
The image contains a pre-initialized Python virtual env. This needs to
be writable to the user running the image. Since we do not know the uid
at image build time, let's fix it up in the entry point script.

Signed-off-by: Oliver Steffen <[email protected]>
  • Loading branch information
osteffenrh authored Nov 26, 2024
1 parent b4ea0a6 commit c98ff99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Fedora-40/fedora40_dev_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ useradd "${EDK2_DOCKER_USER}" -o -l -u "${user_uid}" -g "${user_gid}" \

echo "${EDK2_DOCKER_USER}":tianocore | chpasswd

# Adjust owner of the pre-initialized Python virtual env
if [ -d "${VIRTUAL_ENV}" ]; then
chown --recursive "${EDK2_DOCKER_USER}" "${VIRTUAL_ENV}"
fi

#####################################################################
# Cleanup variables
unset user_uid
Expand Down

0 comments on commit c98ff99

Please sign in to comment.