diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index ec82e0560d7..d9b9738b22e 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -810,6 +810,24 @@ install_from_extracted_nix() { _sudo "to make the new store non-writable at $NIX_ROOT/store" \ chmod -R ugo-w "$NIX_ROOT/store/" + # This is copied from create_directories, see it for why we do all this stuff just to find chown. + local get_chr_own="$(PATH="$(getconf PATH 2>/dev/null)" command -vp chown)" + if [[ -z "$get_chr_own" ]]; then + get_chr_own="$(command -v chown)" + fi + + if [[ -z "$get_chr_own" ]]; then + reminder <