From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. You can help by expanding it.

PRoot is a user-space implementation of chroot, mount --bind, and binfmt_misc.


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.txt | tail -n1 | awk '{ print $1 }')
user $curl -LO "${LATEST}"
user $tar xf stage3-amd64-*.tar.xz



root #emerge --ask sys-apps/proot


user $proot -S ~/tmp/gentoo /bin/bash
~ #


user $PROOT_NO_SECCOMP=1 proot echo "disable seccomp mode"

See also

External resources