19 lines
384 B
Bash
Executable File
19 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
unset LD_PRELOAD
|
|
ROOTFS=/home/user/Alpine
|
|
|
|
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 \
|
|
/bin/sh --login # for login as root
|
|
#/bin/su - user # for login as user
|