chroot login shell fix

This commit is contained in:
aheirman 2021-02-21 15:30:04 +01:00
parent 9b3f7eeada
commit 217db9ebd9
2 changed files with 6 additions and 21 deletions

View file

@ -19,24 +19,7 @@ then
fi
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 ..
sudo chroot ./ /bin/ash login_shell
sudo umount root/tmp/
sudo umount root/proc/