Initial commit
This commit is contained in:
parent
6898d2def8
commit
3b76bb119f
12
src/everest-chroot.sh
Normal file
12
src/everest-chroot.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user