Magisk-Modules-Alt-Repo / chroot-distro

install linux distributions on android
GNU General Public License v3.0
87 stars 7 forks source link

Fix rootfs without su #25

Closed jjkola closed 1 month ago

jjkola commented 1 month ago

Fixes #20.

Added better checks for su command trying to locate it from more places than previously. This should ensure that even if su is not in default location that chroot-distro will be able to use it.

If no su command is found then uses /bin/sh to login to jail, or to run a command. In this situation a warning is printed as there is no guarantee of a consistent environment (at least parts of host environment is leaked). The script tries to ensure that a consistent enough environment is available so that user can do at least some basic maintenance.