We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706af7b commit 7546e90Copy full SHA for 7546e90
eessi_container.sh
@@ -782,6 +782,13 @@ do
782
fi
783
784
[[ ${VERBOSE} -eq 1 ]] && echo "Using a ${cvmfs_repo_mount} mount for /cvmfs/${cvmfs_repo_name}"
785
+ # if a bind mount was requested, check if the repository is really available on the host
786
+ if [[ ${cvmfs_repo_mount} == "bind" ]]; then
787
+ if [[ ! -x $(command -v cvmfs_config) ]] || ! cvmfs_config probe ${cvmfs_repo_name} >& /dev/null; then
788
+ echo -e "ERROR: bind mount requested for CVMFS repository\n '${cvmfs_repo_name}', but it cannot be probed on the host"
789
+ exit ${REPOSITORY_ERROR_EXITCODE}
790
+ fi
791
792
793
# obtain cvmfs_repo_name from EESSI_REPOS_CFG_FILE if cvmfs_repo is in cfg_cvmfs_repos
794
if [[ ${cfg_cvmfs_repos[${cvmfs_repo_name}]} ]]; then
0 commit comments