What is Nostr?
BadWolf0524 / Tony Agudo
npub1pw4…tjx0
2023-08-03 00:58:35

BadWolf0524 on Nostr: Running a Linux distribution via proot-distro on Termux is a weird experience. While ...

Running a Linux distribution via proot-distro on Termux is a weird experience. While the filesystem is properly isolated from the host, the process view isn't, so traditional init systems can't be used in proot(not even Rich Felker's minimal init). I had to strip Felker's init down to literally this as a working starting point:

int main()
{
return execve("/etc/rc", (char *[]){ "rc", 0 }, (char *[]){ 0 });
}
Author Public Key
npub1pw4qgt6mfqa0kwy4fm6gdjafq3qgvxus3tu2dpv5sc46wsykavxs02tjx0