-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: termux distro and rootfs #419
Comments
I think there is already a package to install an isolated termux environment in termux |
Thanks for your info. However, the
Still, your info is very useful. That is a good starting point and I will build on that if Termux dev has no plan or think it not appropriate to include Termux rootfs in the |
Termux distro will be added eventually, but not before 5.x. It is not FHS-compliant and requires special handling. |
You can try this old script. |
A modified bootstrap archive is a minimal requirement to get started. Although changes to For using https://github.com/Neo-Oli/chrooted-termux/blob/master/prooted-termux you need to change bootstrap url. |
I know and I'm trying to bypass it. |
Maybe bootstrap files can be found here https://github.com/termux/termux-packages/releases/ |
Yes, just add a non-empty /etc folder with useless data for Termux but needed for PD and also create symlinks in SYMLINKS.txt. |
Do someone know where is the bootstrap installer script of the app itself ? |
Termux app doesn't use scripts to install bootstrap. It just unzips the archive and processes SYMLINKS.txt. Here is relevant code piece: https://github.com/termux/termux-app/blob/8be53336c381f427137d60170269966a08b6f462/app/src/main/java/com/termux/app/TermuxInstaller.java#L154-L219 |
Ah ok, just that lol. |
And what is loaded in each startups ? |
On every session Termux runs |
Feature description
Would it be possible to add termux (bootstrap) as one of the supported distro in
proot-distro
?Perhaps the primary use case is for on device build. Given that running termux build script and a build failure can mess up the existing termux environment. Also, building large package can require a large number of deps packages and tracking those manually can be painful. It would be useful if a Termux inside Termux environment can be done.
Besides, with
qemu-user
orqemu
, proot-distro can manage a Termux rootfs in other architecture, probably useful for things likebox64
(a glibc package) orfex
(unlikely in Termux due toseccomp
). If I am not mistaken, Termux does not support multiarch like ubuntu. I am not sure about this use case as I did not play around withbox64
.Thanks for consideration.
The text was updated successfully, but these errors were encountered: