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
|
@ -759,6 +759,10 @@ setup_volume() {
|
|||
|
||||
await_volume
|
||||
|
||||
if [ "$(/usr/sbin/diskutil info -plist "$NIX_ROOT" | xmllint --xpath "(/plist/dict/key[text()='GlobalPermissionsEnabled'])/following-sibling::*[1]" -)" = "<false/>" ]; then
|
||||
sudo /usr/sbin/diskutil enableOwnership "$NIX_ROOT"
|
||||
fi
|
||||
|
||||
# TODO: below is a vague kludge for now; I just don't know
|
||||
# what if any safe action there is to take here. Also, the
|
||||
# reminder isn't very helpful.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue