mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Bind /dev/shm
POSIX semaphores need /dev/shm to work. Without this, python
multiprocessing gives errors:
```
Traceback (most recent call last):
...
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
```
Co-authored-by: Alexander Sosedkin <monk@unboiled.info>
Co-authored-by: Tobias Happ <tobias.happ@gmx.de>
This commit is contained in:
parent
31fd02ba4a
commit
149e5c8869
2 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@ writeScript "login" ''
|
|||
-b ${installationDir}/bin:/bin \
|
||||
-b ${installationDir}/etc:/etc \
|
||||
-b ${installationDir}/tmp:/tmp \
|
||||
-b ${installationDir}/tmp:/dev/shm \
|
||||
-b ${installationDir}/usr:/usr \
|
||||
-b ${installationDir}/dev/shm:/dev/shm \
|
||||
-b /:/android \
|
||||
--link2symlink \
|
||||
${builtins.concatStringsSep " " extraProotOptions} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue