Nix Installation Guide: Difference between revisions

imported>Mschwaig
added a clarifying header that refers back to more official documentation
imported>V3vAP
No edit summary
Line 145: Line 145:


Note that you can only use Nix and the installed programs within the shell started by PRoot.
Note that you can only use Nix and the installed programs within the shell started by PRoot.
==== Troubleshooting ====
PRoot uses ptrace to capture and modify system calls. It happens that new system calls are created which proot does not shim yet. If you run into issues, check if:
* you have the latest proot
* the system calls being used are supported by proot (TODO: how to list and diff with sysnums.list?)
Since ptrace only allows one tracer to attach to a process at a time, you cant strace your process while in proot. One suggestion is to strace your application outside of proot to find what system calls are used. Alternatives may be tracing with bpftrace or trace-cmd/ftrace. (This is not elaborated on here because the author doesn't know how to do it.)
A table of system calls supported by proot-rs, which is not the same as proot, can be found at https://github.com/proot-me/proot-rs/wiki/Translation-of-system-calls .


=== nix 2.0's native method ===
=== nix 2.0's native method ===