Skip to content

Commit

Permalink
Fix warning message when /vsi is on nfs
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
  • Loading branch information
andyneff committed Sep 12, 2023
1 parent 3b66867 commit 1bd38d6
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 replaces with
# symlinks, /vsi is needed for the initial entrypoint, but is replaces mid way
# through. Which 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 1bd38d6

Please sign in to comment.