1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

Try setting enableOwnership in macOS install

For external hard disks where ownership is not enabled by default.
This commit is contained in:
Matthew Bauer 2021-08-24 19:23:18 -05:00
parent af94b54db3
commit 079bde2aef
2 changed files with 8 additions and 0 deletions

View file

@ -206,4 +206,8 @@ poly_prepare_to_install() {
EOF
setup_darwin_volume
fi
if [ "$(diskutil info -plist /nix | xmllint --xpath "(/plist/dict/key[text()='GlobalPermissionsEnabled'])/following-sibling::*[1]" -)" = "<false/>" ]; then
failure "This script needs a /nix volume with global permissions! This may require running sudo diskutil enableOwnership /nix."
fi
}