Create a Minimalist `Chroot` Environment
Learnt from this article by Dave McKay .
Create the root directory of the chroot environment if it doesn’t exist.
1chr=/home/ricky/testroot 2mkdir -p $chr Create necessary directories and then get into the environment.
1mkdir -p $chr/{bin,lib,lib64} 2cd $chr Copy the binaries we need for surviving on this …