Skip to content

Commit

Permalink
Merge pull request #462 from VisionSystemsInc/aen_nfs_source2
Browse files Browse the repository at this point in the history
Fix warning message when /vsi is on nfs
  • Loading branch information
andyneff authored Sep 13, 2023
2 parents 3b66867 + 7bed40b commit d93a4b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions linux/just_files/just_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ set -eu
: ${VSI_COMMON_DIR=/vsi}
: ${DOCKER_USERNAME=user}

# In the case where docker_link_mounts causes /src and /vsi to be replaced with
# symlinks, /vsi is still needed for the initial entrypoint, but is replaced mid-way
# through it. While this is not really an issue, the pwd of the PID becomes stale
# and warnings pop up:
# shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
# chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
# Making sure we are in / prevents this issue altogether
cd /

source "${VSI_COMMON_DIR}/linux/elements.bsh"

#**
Expand Down

0 comments on commit d93a4b1

Please sign in to comment.