Skip to content

Big Sur 11.2 diskutil: command not found #4488

@ghost

Description

Install script can't find diskutil because the diskutil not in $PATH

Steps To Reproduce

  1. Install macOS Big Sur 11.2
  2. Run the installation command:
curl -L https://nixos.org/nix/install | sh
  1. See error:
...unpack/nix-2.3.10-x86_64-darwin/install: line 115: diskutil: command not found
-:1: parser error : Document is empty

I think the solution is to call diskutil by its full path: /usr/sbin/diskutil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmacosNix on macOS, aka OS X, aka darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions