Skip to content

macos: move sleep into setup #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading