@@ -98,7 +98,8 @@ display_help() {
9898 echo " -r | --repository CFG - configuration file or identifier defining the"
9999 echo " repository to use; can be given multiple times;"
100100 echo " CFG may include suffixes ',access={ro,rw},mode={bind,fuse}' to"
101- echo " overwrite the global access and/or mount mode for this repository"
101+ echo " overwrite the global access and/or mount mode for this repository;"
102+ echo " use 'None' to not mount any repositories"
102103 echo " [default: software.eessi.io via CVMFS config available"
103104 echo " via default container, see --container]"
104105 echo " -u | --resume DIR/TGZ - resume a previous run from a directory or tarball,"
@@ -353,6 +354,14 @@ if [[ ${#REPOSITORIES[@]} -eq 0 ]]; then
353354 REPOSITORIES+=(${eessi_default_cvmfs_repo} )
354355fi
355356
357+ # if the first element of REPOSITORIES is "none" (case-insensitive),
358+ # make sure it is an empty list from here on, i.e. no repositories will be mounted
359+ if [[ ${REPOSITORIES[0],,} == " none" ]]; then
360+ REPOSITORIES=()
361+ # also prevent the cvmfs-config repo from being mounted
362+ EESSI_DO_NOT_MOUNT_CVMFS_CONFIG_CERN_CH=1
363+ fi
364+
356365# 1. check if argument values are valid
357366# (arg -a|--access) check if ACCESS is supported
358367# use the value as global setting, suffix to --repository can specify an access mode per repository
0 commit comments