proot: Expose /storage in termux-chroot
This commit is contained in:
parent
216acc0654
commit
c491cc4966
@ -1,6 +1,6 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=http://proot.me/
|
TERMUX_PKG_HOMEPAGE=http://proot.me/
|
||||||
TERMUX_PKG_DESCRIPTION="Emulate chroot, bind mount and binfmt_misc for non-root users"
|
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_SRCURL=https://github.com/proot-me/PRoot/archive/next.zip
|
||||||
TERMUX_PKG_FOLDERNAME=PRoot-next
|
TERMUX_PKG_FOLDERNAME=PRoot-next
|
||||||
TERMUX_PKG_DEPENDS="libtalloc"
|
TERMUX_PKG_DEPENDS="libtalloc"
|
||||||
|
@ -15,6 +15,11 @@ ARGS="-b /system:/system"
|
|||||||
# to find e.g. configurations files there work.
|
# to find e.g. configurations files there work.
|
||||||
ARGS="$ARGS -b $PREFIX/..:$PREFIX/.."
|
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:
|
# Mimic traditional Linux file system hierarchy - /usr:
|
||||||
ARGS="$ARGS -b $PREFIX:/usr"
|
ARGS="$ARGS -b $PREFIX:/usr"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user