Skip to content

Commit

Permalink
Ensure mountpoint test doesn't cause entrypoint to fail
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Obuchowicz <[email protected]>
  • Loading branch information
AObuchow committed Nov 14, 2023
1 parent 9dbbb77 commit 02fd069
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devspaces-udi/etc/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ fi
#############################################################################

# /home/user/ will be mounted to by a PVC if persistUserHome is enabled
mountpoint -q /home/user/; HOME_USER_MOUNTED=$?
# We need to override the `set -e` from this script by ensuring the mountpoint command returns 0,
# but we also need to capture the exit code of mountpoint
HOME_USER_MOUNTED=0
mountpoint -q /home/user/ || HOME_USER_MOUNTED=$?

# This file will be created after stowing, to guard from executing stow everytime the container is started
STOW_COMPLETE=/home/user/.stow_completed
Expand Down

0 comments on commit 02fd069

Please sign in to comment.