-
-
Save fornwall/e2cb15e77f49d3ff176ab5f2fb8b4caa to your computer and use it in GitHub Desktop.
Diff for termux-chroot to work (somewhat) on Android 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- termux-chroot 2020-02-09 23:11:05.480000000 +0100 | |
+++ termux-chroot.patched 2020-02-09 23:09:25.840000000 +0100 | |
@@ -53,8 +53,11 @@ | |
# Mimic traditional Linux file system hierarchy - /usr: | |
ARGS="$ARGS -b $PREFIX:/usr" | |
+# Mimic traditional Linux file system hierarchy - /home: | |
+ARGS="$ARGS -b $HOME:/home" | |
+ | |
# Mimic traditional Linux file system hierarchy - other Termux dirs: | |
-for f in bin etc lib share tmp var; do | |
+for f in etc lib share tmp var; do | |
ARGS="$ARGS -b $PREFIX/$f:/$f" | |
done | |
@@ -66,11 +69,8 @@ | |
# Set /home as current directory: | |
ARGS="$ARGS --cwd=/home" | |
-# Root of the file system: | |
-ARGS="$ARGS -r $PREFIX/.." | |
- | |
# Shell to execute: | |
-PROGRAM=/bin/bash | |
+PROGRAM=$PREFIX/bin/bash | |
if [ -x $HOME/.termux/shell ]; then | |
PROGRAM=`readlink -f $HOME/.termux/shell` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment