termux / proot-distro

An utility for managing installations of the Linux distributions in Termux.
GNU General Public License v3.0
1.55k stars 178 forks source link

[Feature]: termux distro and rootfs #419

Open knyipab opened 3 weeks ago

knyipab commented 3 weeks ago

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 or qemu, proot-distro can manage a Termux rootfs in other architecture, probably useful for things like box64 (a glibc package) or fex (unlikely in Termux due to seccomp). 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 with box64.

Thanks for consideration.

23xvx commented 2 weeks ago

I think there is already a package to install an isolated termux environment in termux which is termux-install

knyipab commented 2 weeks ago

Thanks for your info. However, the termux-install package has quite a number of limitations:

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 proot-distro.

sylirre commented 1 week ago

Termux distro will be added eventually, but not before 5.x. It is not FHS-compliant and requires special handling.