Open sneak opened 3 years ago
This is a known bug in ChromeOS - https://bugs.chromium.org/p/chromium/issues/detail?id=1087937
And has shown up on the NixOS discourse - https://discourse.nixos.org/t/chrome-os-83-breaks-nix-sandboxing/6764/4
The workaround is to run sudo umount /proc/{cpuinfo,diskstats,meminfo,stat,uptime}
and then try to install again. It worked for me on ChromeOS 85, but both those threads will point out it's not necessarily a good idea.
BTW- I always get tripped up on the work-arounds from reading those threads, so I documented literal cut-and-paste instructions for the workaround on ChromeOS in this lxd/lxc ticket. Let me know if those literal instructions work for anyone experiencing this, or if they do not.
Workaround is also to disable sandboxing, although that affects reproducibility/security of nix builds.
I marked this as stale due to inactivity. → More info
Sorry for reopening this but it looks like this didn't fix it at least with Nix 2.9.1, I needed to use this:
https://github.com/NixOS/nix/issues/4107#issuecomment-710196475
I also did it with single user as multi wasn't working for me.
not sure if this helps, starting ChromeOS 103 ( which hasn't reached stable yet) nix works out of the box without any workarounds
not sure if this helps, starting ChromeOS 103 ( which hasn't reached stable yet) nix works out of the box without any workarounds
That does help! Thank you for the report!
/proc is mounted and there's stuff in there, but mounting/unmounting/remounting things inside of the container in which the linux support for ChromeOS runs is not generally permitted.