This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

User:Zeekec/schroot

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
Warning
This page is a work in progress by zeekec (talk | contribs). Treat its contents with caution.

The program schroot allows the user to run a command or a login shell in a chroot environment.

Install dev-util/schroot

Since dev-util/schroot is already in the tree, installing is as simple as:

root #emerge --ask dev-util/schroot

Create chroot

Configuration

File/etc/schroot/chroot.d/gentoo32

'"`UNIQ--pre-00000000-QINU`"'

This is a deprecated template. Help us update this template!

File/etc/schroot/gentoo32/copyfiles

'"`UNIQ--pre-00000003-QINU`"'

This is a deprecated template. Help us update this template!

Note
I copied machine-id because there was a symlink to it in /var/lib/dbus, which is bind mounted below. Probably only one of those is needed.
File/etc/schroot/gentoo32/fstab

'"`UNIQ--pre-00000006-QINU`"'

This is a deprecated template. Help us update this template!

File/etc/schroot/gentoo32/nssdatabases

'"`UNIQ--pre-00000009-QINU`"'

This is a deprecated template. Help us update this template!