Skip to content

Commit

Permalink
move sleep into setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Dec 5, 2024
1 parent fb426fe commit 5da0114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
run: |
echo "### Dump default.local ###"
cat /etc/cvmfs/default.local
sleep 5
echo "### Try to ls on /Users/Shared/cvmfs/sft.cern.ch/ ###"
ls /Users/Shared/cvmfs/sft.cern.ch/ | grep lcg
echo "### Try to ls on /cvmfs/sft.cern.ch/ ###"
Expand Down
4 changes: 4 additions & 0 deletions setup-cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ elif [ "$(uname)" == "Darwin" ]; then
brew tap cvmfs/homebrew-cvmfs
brew install cvmfs


# / is readonly on macos 11+ - do 'synthetic firmlink' to create /cvmfs
sudo zsh -c 'echo -e "cvmfs\tUsers/Shared/cvmfs\n#comment\n" > /etc/synthetic.conf'
sudo chown root:wheel /etc/synthetic.conf
sudo chmod a+r /etc/synthetic.conf
# apfs.util seems to return non-zero error codes also on success
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t || true

else
echo "Unsupported platform"
exit 1
Expand All @@ -83,4 +85,6 @@ if [ "$(uname)" == "Darwin" ]; then
mkdir -p /Users/Shared/cvmfs/${repo}
sudo mount -t cvmfs ${repo} /Users/Shared/cvmfs/${repo}
done
# Fuse-t can have a brief lag after mounting before the mountpoint responds
sleep 3
fi

0 comments on commit 5da0114

Please sign in to comment.