Skip to content

Commit

Permalink
Handle apfs.util changed '-B' option.
Browse files Browse the repository at this point in the history
Fix copied from LnL7/nix-darwin@8834df4
  • Loading branch information
rickynils committed Nov 1, 2022
1 parent aa4b43b commit 854e5af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nix-quick-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ if [[ $OSTYPE =~ darwin ]]; then
sudo $SHELL -euo pipefail << EOF
echo nix >> /etc/synthetic.conf
echo -e "run\\tprivate/var/run" >> /etc/synthetic.conf
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B || true
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B &>/dev/null \
|| /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null \
|| echo "warning: failed to execute apfs.util"
diskutil apfs addVolume disk1 APFS nix -mountpoint /nix
mdutil -i off /nix
chown $USER /nix
Expand Down

0 comments on commit 854e5af

Please sign in to comment.