Browse Source

termux-chroot: bind /apex if it exists

Fixes https://github.com/termux/proot/issues/95
master
Henrik Grimler 5 years ago
parent
commit
30d623e944
  1. 2
      packages/proot/build.sh
  2. 6
      packages/proot/termux-chroot

2
packages/proot/build.sh

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="GPL-2.0"
# Just bump commit and version when needed:
_COMMIT=1f4ec1c9d3fcc5d44c2a252eda6d09b0c24928cd
TERMUX_PKG_VERSION=5.1.107
TERMUX_PKG_REVISION=25
TERMUX_PKG_REVISION=26
TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=1119f1d27ca7a655eb627ad227fbd9c7a0343ea988dad3ed620fd6cd98723c20
TERMUX_PKG_DEPENDS="libtalloc"

6
packages/proot/termux-chroot

@ -39,6 +39,12 @@ if [ -d /sbin ] && [ -d /root ]; then
ARGS="$ARGS -b /sbin:/sbin -b /root:/root"
fi
# Android 10 needs /apex for /system/bin/linker:
# https://github.com/termux/proot/issues/95#issuecomment-584779998
if [ -d /apex ]; then
ARGS="$ARGS -b /apex:/apex"
fi
if [ -f /property_contexts ]; then
# Used by getprop (see https://github.com/termux/termux-packages/issues/1076)
# but does not exist on Android 8.

Loading…
Cancel
Save