X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/01176e2d8f3b7e998c7ccea6bb73895150fc3d37..3cffa96b224eb5f7322209f48b96d541068ccda6:/packages/proot/termux-chroot diff --git a/packages/proot/termux-chroot b/packages/proot/termux-chroot index 5dde068e..d9d73fcf 100755 --- a/packages/proot/termux-chroot +++ b/packages/proot/termux-chroot @@ -11,10 +11,19 @@ fi # For the /system/bin/linker(64) to be found: ARGS="-b /system:/system" +# On some devices /vendor is required for termux packages to work correctly +# See https://github.com/termux/proot/issues/2#issuecomment-303995382 +ARGS="$ARGS -b /vendor:/vendor" + # Bind $PREFIX so Termux programs expecting # to find e.g. configurations files there work. ARGS="$ARGS -b $PREFIX/..:$PREFIX/.." +# Expose external and internal storage: +if [ -d /storage ]; then + ARGS="$ARGS -b /storage:/storage" +fi + # Mimic traditional Linux file system hierarchy - /usr: ARGS="$ARGS -b $PREFIX:/usr"