2022-04-12 18:17:42 +03:00
|
|
|
#!/bin/sh
|
|
|
|
unset LD_PRELOAD
|
|
|
|
ROOTFS=/home/user/Alpine
|
|
|
|
|
2022-05-01 22:38:18 +03:00
|
|
|
exec proot-v5.3.0-x86_64-static --kill-on-exit -r $ROOTFS --root-id \
|
|
|
|
--cwd=/root \
|
|
|
|
-b /dev/ \
|
|
|
|
-b /sys/ \
|
|
|
|
-b /proc/ \
|
|
|
|
-w / \
|
|
|
|
/usr/bin/env -i \
|
|
|
|
TMPDIR=/tmp \
|
|
|
|
HOME=/root \
|
|
|
|
TERM="xterm-256color" \
|
|
|
|
LANG=C.UTF-8 \
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
2022-06-23 13:53:28 +03:00
|
|
|
/bin/sh --login # for login as root
|
|
|
|
#/bin/su - user # for login as user
|