Closed jjkola closed 1 month ago
Investigated this issue and problem seems to be that there is no su/sudo in CentOS rootfs. This will need to be taken in account.
This is a problem, I can't testing all distributions
It can be solved by adding automated testing. If done properly it can be used both for PR process as well as for daily/weekly/whatever automated run which checks that every supported distro can be downloaded and installed. For PR process we could add tests for known problems as well as general checks that things works as we expect them to work. This can be achieved for example with containers which has been tuned to look like a android device. And, I would assume that we are not the first ones needing this kind of thing, so I would expect to find examples of how to do this.
While investigating the problem with adb shell I found out that when using termux the environment variables may be leaked to chrooted rootfs. This may have masked errors where rootfs is missing su, or is using su from wrong place (termux su). I have fixed this issue and I will try to push the changes as soon as possible. For the problem with su missing from the rootfs I have already thought a solution but will have to implement it.
I installed the new module. At this point I was able to install and login in kali without errors. When I try to log into CentOS I get the error /bin/su. Personally, I don’t need it, but I think it’s worth informing.
Originally posted by @Dlazder in https://github.com/Magisk-Modules-Alt-Repo/chroot-distro/issues/6#issuecomment-2232868411