From c491cc49667ef4cdd0946b715fa3ba126cf7a06e Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 27 Mar 2016 18:10:22 -0400 Subject: [PATCH] proot: Expose /storage in termux-chroot --- packages/proot/build.sh | 2 +- packages/proot/termux-chroot | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/proot/build.sh b/packages/proot/build.sh index 5004d729..567cf983 100644 --- a/packages/proot/build.sh +++ b/packages/proot/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://proot.me/ TERMUX_PKG_DESCRIPTION="Emulate chroot, bind mount and binfmt_misc for non-root users" -TERMUX_PKG_VERSION=5.1.99 +TERMUX_PKG_VERSION=5.1.100 TERMUX_PKG_SRCURL=https://github.com/proot-me/PRoot/archive/next.zip TERMUX_PKG_FOLDERNAME=PRoot-next TERMUX_PKG_DEPENDS="libtalloc" diff --git a/packages/proot/termux-chroot b/packages/proot/termux-chroot index 5dde068e..9a84101d 100755 --- a/packages/proot/termux-chroot +++ b/packages/proot/termux-chroot @@ -15,6 +15,11 @@ ARGS="-b /system:/system" # 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" -- 2.11.0