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:
Zhong Jianxin 2021-10-18 15:59:15 +08:00 committed by Alexander Sosedkin
parent 31fd02ba4a
commit 149e5c8869
2 changed files with 3 additions and 1 deletions

View file

@ -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} \