diff --git a/src/everest-chroot.sh b/src/everest-chroot.sh new file mode 100644 index 0000000..9bd4d4b --- /dev/null +++ b/src/everest-chroot.sh @@ -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