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 });
}
Published at
2023-08-03 00:58:35Event JSON
{
"id": "d4c4c749e5581bbe851024f71036b5e529ed674a96d5ec5d070c742e83f4c770",
"pubkey": "0baa042f5b483afb38954ef486cba90440861b908af8a68594862ba74096eb0d",
"created_at": 1691024315,
"kind": 1,
"tags": [
[
"client",
"coracle"
]
],
"content": "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:\n\nint main()\n{\n return execve(\"/etc/rc\", (char *[]){ \"rc\", 0 }, (char *[]){ 0 });\n}",
"sig": "e890bc4f5fb9f662892681162197a8adfd3d2ecf736f9a9a0cb0bff3e38190be1021fd82dee26e73aefc54e8c2b41d60b7c3c7e4df6ebed026153baf7c0e31d6"
}