Initial commit

This commit is contained in:
everest-linux 2022-07-11 09:26:14 -04:00
parent 6898d2def8
commit 3b76bb119f

12
src/everest-chroot.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
chroot "$EV" /usr/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='[everest-chroot] \u:\w \$ ' \
PATH=/usr/bin:/usr/sbin \
/bin/bash --login
if [ "$?" != "0" ]; then
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Could not enter chroot environment.\n" 1>&2
exit 1
fi