-
Notifications
You must be signed in to change notification settings - Fork 9
/
startSmall.sh
executable file
·15 lines (8 loc) · 2.13 KB
/
startSmall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# ./proot-arm64 -0 -r ./smallFileSystem -w /root
# proot -0 -r ./smallFileSystem -w /root --bind=/data/data/com.termux/files/usr --bind=/data/data/com.termux/files/home --bind=/data/data/com.termux/cache --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/tmp:/dev/shm
# Working:
# proot --bind=/vendor --bind=/system --bind=/data/data/com.termux/files/usr --bind=/apex --bind=/storage/self/primary:/sdcard --bind=/storage --bind=/data/data/com.termux/files/home --bind=/data/data/com.termux/cache --bind=/data/dalvik-cache --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/tmp:/dev/shm --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/proc/.vmstat:/proc/vmstat --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/proc/.version:/proc/version --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/proc/.uptime:/proc/uptime --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/proc/.stat:/proc/stat --bind=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small/proc/.loadavg:/proc/loadavg --bind=/sys --bind=/proc/self/fd/2:/dev/stderr --bind=/proc/self/fd/1:/dev/stdout --bind=/proc/self/fd/0:/dev/stdin --bind=/proc/self/fd:/dev/fd --bind=/proc --bind=/dev/urandom:/dev/random --bind=/dev --root-id --cwd=/root -L --kernel-release=5.4.0-faked --sysvipc --link2symlink --kill-on-exit --rootfs=/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/small # /usr/bin/env -i HOME=/root LANG=C.UTF-8 TERM=xterm-256color
# This works, but poorly, use proot-distro
# Small Manual Starter
proot --bind=/system --bind=/data/data/com.termux/files/usr --bind=/apex --bind=/proc/self/fd/2:/dev/stderr --bind=/proc/self/fd/1:/dev/stdout --bind=/proc/self/fd/0:/dev/stdin --bind=/proc/self/ --bind=/proc/self/fd:/dev/fd --bind=/dev/urandom:/dev/random --bind=/dev --root-id --cwd=/root -L --kernel-release=5.4.0-faked --sysvipc --link2symlink --kill-on-exit --rootfs=./smallFileSystem # /usr/bin/env -i HOME=/root LANG=C.UTF-8 TERM=xterm-256color