This commit is contained in:
Alexander Popov 2022-05-01 19:38:18 +00:00
parent f16d4ae0e5
commit 2e112aa987
1 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,17 @@
#!/bin/sh
unset LD_PRELOAD
ROOTFS=/home/user/Alpine
exec proot-v5.3.0-x86_64-static --link2symlink -0 -r $ROOTFS -b /dev/ -b /sys/ -b /proc/ -w /home /usr/bin/env TMPDIR=/tmp HOME=/home PREFIX=/usr SHELL=/bin/sh TERM="xterm-256color" LANG=en_US.UTF-8 PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/sh --login
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