-
-
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
macOS 11 (Big Sur beta 3) further locks down / #3853
Comments
Thanks for testing this. |
This can be temporarily worked around by disabling SIP "filesystem protections". Reboot to Recovery OS and execute the following:
|
In my case, I needed to do: |
I originally considered this approach. This turns Alternatively, you can stick with the symlink and set the environment variable |
No problem about mounting on Beta 1 and 2, so wait and see for the final release because Apple can revert this change. Otherwise, next step will be moving back to homebrew because I refuse to degrade SIP if NIX_IGNORE_SYMLINK_STORE doesn't work well but also because nix doesn't provide a way to install it at custom location. One possible way is what I did, having a macOS Catalina in vm on another computer and syncing the /nix across the network but it's not very elegant. |
@arianvp said that we might get a firmlink for |
Otherwise it might be time for nix to switch to a different store path on macOS? |
My exact words were that somebody at Apple poked me on the firmlink issue on twitter. I don't know whether they will actually be able to help; but I did sent them a link to this issue. Lets hope if they can help us =) |
Tweet in question for the record: https://twitter.com/ProgrammerDude/status/1285858829155151873 |
Could someone file an issue at https://feedbackassistant.apple.com with their Apple Developer account on the firmlink issue, and then share with the kind people in this twitter thread? https://twitter.com/rballard/status/1287786882688880651?s=20 |
I have done so, as FB8179445. I doubt you'll be able to see the URL, but it's here: https://feedbackassistant.apple.com/feedback/8179445 However, the Apple engineer who's been replying has requested that I file a separate Feedback for the Big Sur beta 3 behavior as described in this GitHub issue. I'll try to do that if nobody beats me to it, but I'm not currently running Big Sur, so it might take me a few days. |
The fact that mounting a volume using |
In Big Sur everything on the system volume is protected, paths that are user editable like |
@ryanbooker What you describe sounds like Catalina. It's unclear to me what's changed in this regard for Big Sur, besides the volume mounting bug. |
I read through the eclectic light post a few weeks ago, and again now. I won't try to proclaim, having not tested, but both times it didn't seem to me like the signing change it focuses on should have any impact on the Nix install approach (because it isn't modifying the system volume). |
I just read that post, and it sounds like the changes here aren't actually related to being unable to mount a volume rw on a path listed in |
I hope you're right and it's just a bug. I was assuming it's because the mount point is on the system volume and nothing on the system volume is allowed to be |
@ryanbooker do you have an Apple Developer account, and would you want to file an FB for this specific issue and share it here for documentation-sake? In the FB you can say it's a duplicate of |
Yep. I had already filed one, but I've marked it as a dupe. |
FWIW, the (probable?) regression is still present on Beta 4.
|
If anyone listening/reading is in the DTK program, I'm curious if there are other reports/discussion about this in the DTK forum that supposedly exists? |
Note that I and @grahamc have a contact person at Apple's developer relations that can help us approve DTK access requests for companies with nix contributors. If you're interested please reach out to us. Another option is for NixOS organization to request access to MacStadium cloud machines (free of charge) I think @grahamc also requested one for the NixOS Foundation but I am not sure The original email that I got:
. |
The drive mounts now. |
Heise (German Tech newspaper) just reported that apple will only allow signed code. Can that work with binary caches? (I'm not yet on apple and I think of waiting to go to apple untill the arm is available) Source: https://www.heise.de/news/Apple-ARM-Macs-fuehren-nur-noch-signierten-Code-aus-4875048.html |
We likely cannot add signing keys to the nix-build in a reproducible manner. Also the clang used in nixpkgs won't have those keys as well. Everyone on that platform would need to compile packages themselves. What will better work is to run NixOS in their VM similiar to WSL - it may even be faster for certain workloads - macOS system calls are not known to be very performant. |
Do you mean that in the latest beta, this is no longer an issue? |
Shall we open a new issue for ARM compatibility? It seems to be a bit of a separate discussion |
|
@rbvermaa excellent news :) I have opened an issue NixOS/nixpkgs#95903 |
Yes. The Nix drive will mount again, and nix will work as it did in Catalina. :) |
I think we can close this issue than. |
Still working in the latest beta. |
The existing work around to install into
/nix
via a new APFS volume, and mounting as rw invifs
, no longer appears to work. The volume simply won't mount.The text was updated successfully, but these errors were encountered: