diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2021-12-01 18:38:32 -0600 |
---|---|---|
committer | Travis A. Everett <travis.a.everett@gmail.com> | 2021-12-01 18:38:32 -0600 |
commit | 3bf7a868eefa5388400a63efd5c5b92b9177ff56 (patch) | |
tree | adf7b6398068a0b6a9472744aebe25dd3e2320b0 | |
parent | 782837d9345b70023c682a177c074333d1cb7baa (diff) |
darwin-install: nail down diskutil
Same purpose as de9efa3b79af7886fcf2a67b6ce97d4f96a57421
For some unclear reason, we get occasional reports from people who do
not have /usr/sbin on their PATH that the installer fails. It's a
standard part of the PATH, so I have no clue what they're doing to
remove it--but it's also fairly cheap to avoid.
-rw-r--r-- | scripts/install-darwin-multi-user.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh index 96eba8310..afaa6783b 100644 --- a/scripts/install-darwin-multi-user.sh +++ b/scripts/install-darwin-multi-user.sh @@ -218,7 +218,7 @@ 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." + if [ "$(/usr/sbin/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 /usr/sbin/diskutil enableOwnership /nix." fi } |