mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
login: Do not dereference proot binds /bin and /etc
`/bin` and `/etc` are symlinks to `/system/bin` and `/system/etc`, by default proot will dereference and override them with new contents. After this change, `/system/bin` and `/system/etc` are kept untouched, so commands like `/system/bin/ping` can be run directly.
This commit is contained in:
parent
9e51417048
commit
0f84a1039c
2 changed files with 3 additions and 2 deletions
1
AUTHORS
1
AUTHORS
|
|
@ -2,3 +2,4 @@ Alexander Sosedkin <monk@unboiled.info>
|
||||||
Tobias Happ <tobias.happ@gmx.de>
|
Tobias Happ <tobias.happ@gmx.de>
|
||||||
Bruno Bigras <bigras.bruno@gmail.com>
|
Bruno Bigras <bigras.bruno@gmail.com>
|
||||||
Evgeny Kurnevsky <kurnevsky@gmail.com>
|
Evgeny Kurnevsky <kurnevsky@gmail.com>
|
||||||
|
Zhong Jianxin <azuwis@gmail.com>
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ writeScript "login" ''
|
||||||
|
|
||||||
exec ${installationDir}/bin/proot-static \
|
exec ${installationDir}/bin/proot-static \
|
||||||
-b ${installationDir}/nix:/nix \
|
-b ${installationDir}/nix:/nix \
|
||||||
-b ${installationDir}/bin:/bin \
|
-b ${installationDir}/bin:/bin! \
|
||||||
-b ${installationDir}/etc:/etc \
|
-b ${installationDir}/etc:/etc! \
|
||||||
-b ${installationDir}/tmp:/tmp \
|
-b ${installationDir}/tmp:/tmp \
|
||||||
-b ${installationDir}/usr:/usr \
|
-b ${installationDir}/usr:/usr \
|
||||||
-b ${installationDir}/dev/shm:/dev/shm \
|
-b ${installationDir}/dev/shm:/dev/shm \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue