Update readme, typos, use login shell in chroot, add user profile in chroot

This commit is contained in:
aheirman 2021-02-21 13:13:31 +01:00
parent 930389c7c8
commit a5dacebc3d
5 changed files with 88 additions and 15 deletions

View file

@ -4,6 +4,7 @@ cd ./root
echo "Going to chroot, woot!"
mkdir proc
mkdir sys
mkdir dev
@ -18,7 +19,22 @@ then
fi
sudo chroot ./ /bin/sh
if false; then
sudo chroot ./ /usr/bin/env -i \
HOME="/root" \
TERM="$TERM" \
PS1='chroot: ' \
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" \
/bin/bash -l +h
fi
if false; then
sudo chroot ./ /usr/bin/env -i \
/bin/bash source /etc/profile\
/bin/bash -l +h
fi
sudo chroot ./ /bin/bash -l
cd ..