-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big Sur 11.2 diskutil: command not found #4488
Comments
Should close NixOS#4488
I'm a little skeptical about whether /usr/sbin has been intentionally removed from the default PATH, but nailing these paths down has already been on my mind. In a naked attempt to get it pushed through the pipeline, I've added a commit to my existing PR #4289 that nails down instances of diskutil by absolute path. I suspect there are other utilities in /usr/sbin/ used in the installer, so I'll probably go ahead and audit the rest of them later this evening. |
I got 11.2 20D64 installed on a system overnight (had to fresh install 11.1 after the upgrade from 11.0 -> 11.1 broke, rejoin beta program, and upgrade to 11.2) and it looks like my stock PATH is Unless maybe you did a direct no-upgrade fresh install of 11.2, it seems like something in your RC/profile files may be causing this? In any case, I think it's still fine to nail these down. |
I am sorry, I should have been written this in the issue description. I guess you are right about having my rc/profile files causing this. |
Should close NixOS#4488
Should close NixOS#4488
Should close NixOS#4488
Should close NixOS#4488
Should close NixOS#4488
I also experienced this issue, and for those looking for a workaround, I can confirm the following resolves the problem:
|
Install script can't find diskutil because the diskutil not in
$PATH
Steps To Reproduce
curl -L https://nixos.org/nix/install | sh
I think the solution is to call
diskutil
by its full path:/usr/sbin/diskutil
.The text was updated successfully, but these errors were encountered: