From 8efc316a430c92e032ef826ccfc3684b0a4acc8e Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Sat, 29 Aug 2020 15:52:19 +0200 Subject: [PATCH] config repo *must* be mounted at /cvmfs/cvmfs-config.eessi-hpc.org, because of /cvmfs/ path specified in etc/cvmfs/domain.d/eessi-hpc.org.conf (CVMFS_KEYS_DIR) --- singularity_cvmfs_overlay/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singularity_cvmfs_overlay/README.md b/singularity_cvmfs_overlay/README.md index 7dccb737..797a25bc 100644 --- a/singularity_cvmfs_overlay/README.md +++ b/singularity_cvmfs_overlay/README.md @@ -3,7 +3,7 @@ On the host: sudo singularity build --sandbox fuse-overlay fuse-overlay.def # Make some directory which is shared with the container (/tmp is mounted automatically) mkdir -p /tmp/overlay/{upper,work} -singularity shell -S /var/run/cvmfs -B /tmp/cvmfs_cache:/var/lib/cvmfs --fusemount "container:cvmfs2 cvmfs-config.eessi-hpc.org /cvmfs_ro/cvmfs-config.eessi-hpc.org" --fusemount "container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org" -f fuse-overlay/ +singularity shell -S /var/run/cvmfs -B /tmp/cvmfs_cache:/var/lib/cvmfs --fusemount "container:cvmfs2 cvmfs-config.eessi-hpc.org /cvmfs/cvmfs-config.eessi-hpc.org" --fusemount "container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org" -f fuse-overlay/ ``` Inside the container: @@ -16,5 +16,5 @@ Now you should be able to make files in `/cvmfs/pilot.eessi-hpc.org`, and they w The following would be even nicer (it automatically mounts the overlay, and doesn't need fakeroot stuff), but it gives weird `Operation not permitted` errors, for instance when you do `cd /cvmfs/pilot.eessi-hpc.org/`: ``` -singularity shell -S /var/run/cvmfs -B /tmp/cvmfs_cache:/var/lib/cvmfs --fusemount "container:cvmfs2 cvmfs-config.eessi-hpc.org /cvmfs_ro/cvmfs-config.eessi-hpc.org" --fusemount "container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org" --fusemount "container:fuse-overlayfs -o lowerdir=/cvmfs_ro/pilot.eessi-hpc.org -o upperdir=/tmp/overlay/upper -o workdir=/tmp/overlay/work /cvmfs/pilot.eessi-hpc.org" fuse-overlay/ +singularity shell -S /var/run/cvmfs -B /tmp/cvmfs_cache:/var/lib/cvmfs --fusemount "container:cvmfs2 cvmfs-config.eessi-hpc.org /cvmfs/cvmfs-config.eessi-hpc.org" --fusemount "container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org" --fusemount "container:fuse-overlayfs -o lowerdir=/cvmfs_ro/pilot.eessi-hpc.org -o upperdir=/tmp/overlay/upper -o workdir=/tmp/overlay/work /cvmfs/pilot.eessi-hpc.org" fuse-overlay/ ```