Commit Graph

9 Commits

Author SHA1 Message Date
Henrik Grimler
a89e9994ce termux-chroot: bind /apex if it exists
Fixes https://github.com/termux/proot/issues/95
2020-03-02 16:50:47 +01:00
Vijay Vaidyanathan
4265175009 Changed shells were not being recognized
The check for a changed shell (e.g. by chsh) was correctly using $HOME/.termux/shell, but $HOME was being hardcoded to "/home" prior to the check.

Since most likely, $HOME is not yet "/home" (since the user is invoking termux-chroot) this test was failing to recognize changed shells (e.g. this failed with zsh).

Moving the assignment of HOME to /home after the shell has been read fixes this.
2018-06-24 12:00:00 +02:00
michalbednarski
2b65c759fa proot: Update for accept and MagiskSU support (#2235)
* Added arguments for proot to enable the use of MagiskSU from within termux-chroot.

* Restore original shebang to termux-chroot for pull-request.

* Added folder existence check to ensure MagiskSU changes don't break termux-chroot on later versions of Android, just in case.

* proot: Update for accept -> accept4 translation
2018-03-10 22:35:53 +01:00
Fredrik Fornwall
ddd429197e proot: Only bind /property_contexts if file exists
Fixes the following warning when running termux-chroot on Android 8:

proot warning: can't sanitize binding "/property_contexts":
No such file or directory
2017-11-21 05:13:54 +01:00
Oliver Schmidhauser
8ceb581ba6 termux-chroot: Specify command to execute
Allow a command to be specified when running termux-chroot.
Example:
```
$ termux-chroot ls /
bin  data  dev  etc  home  lib  proc  property_contexts  share  storage  system  tmp  usr  var  vendor
```
This makes it possible to run scripts that include a part that needs to
be run in a chrooted environment, like a compile script.
```
./configure
make
termux-chroot make install
```

Previously it had to be done like this:
```
./configure
make
termux-chroot
cd program
make install
exit
```
2017-08-16 23:47:26 +02:00
Fredrik Fornwall
755cc3022e proot: /data & /property_contexts in termux-chroot (#1081)
Fixes #1076.
2017-06-13 16:21:56 +02:00
michalbednarski
fd52da0d94 proot: Update and mount /vendor (#1055)
* Update to fix emulated ptrace() on ARM thumb
* Mount /vendor (fixes termux/proot#2)
2017-05-25 22:15:42 +02:00
Fredrik Fornwall
c491cc4966 proot: Expose /storage in termux-chroot 2016-03-27 18:10:22 -04:00
Fredrik Fornwall
01176e2d8f Enable the proot package 2016-03-21 21:42:20 -04:00