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:
parent
af94b54db3
commit
079bde2aef
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue