PRoot
From Gentoo Wiki
PRoot is a user-space implementation of chroot, mount --bind, and binfmt_misc.
Prerequisites
Setting up the environment
When creating a new rootfs, the first thing needed is a directory for the rootfs to reside in. For example, a rootfs could be created in ~/tmp/gentoo:
user $
mkdir -p ~/tmp/gentoo
user $
cd ~/tmp/gentoo
If an installation has been previously created in a sub directory of the current root file system the above steps can be skipped.
Unpacking system files and the Portage tree (new installations)
When building a new install, the next step is to download the stage3 tarball and unpack it to the rootfs location. For more information on this process please see Downloading the stage tarball and Unpacking the stage tarball in the Gentoo Handbook.
user $
LATEST=$(cat latest-stage3-amd64-openrc.txt | tail -n1 | awk '{ print $1 }')
user $
curl -LO "http://distfiles.gentoo.org/releases/amd64/autobuilds/${LATEST}"
user $
tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner
Installation
Emerge
root #
emerge --ask sys-apps/proot
Usage
user $
proot -S ~/tmp/gentoo /bin/bash
~ #
Troubleshooting
user $
PROOT_NO_SECCOMP=1 proot echo "disable seccomp mode"