1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00

installer: handle apfs.util on macOS 11.0 Big Sur

The flages of apfs.util changed in 11.0 so try both cases.

Fixes #249
This commit is contained in:
Daiderd Jordan 2020-11-15 15:17:13 +01:00
parent 56f01699fb
commit c6f44ea7ff
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ let
echo >&2
echo "$ echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf" >&2
echo "$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B" >&2
echo "$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t" >&2
echo >&2
echo "The current contents of /etc/synthetic.conf is:" >&2
echo >&2

View file

@ -68,6 +68,7 @@ with lib;
echo "setting up /etc/synthetic.conf..."
echo -e "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf >/dev/null
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B 2>/dev/null || true
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t 2>/dev/null || true
fi
if ! test -L /run; then
echo "setting up /run..."