chroot

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Troubleshooting

When you use chroot, beware not to import variables from the host system which may affect the behaviour in the chroot system.

For example, one may experience strange bash errors in the chroot system. The genesis of the problem might be thus:

sudo mount -v -o bind /home /mnt/gentoo/home # /home is shared between the two systems!
sudo chroot /mnt/gentoo /bin/bash            # bash ariables from the host will bleed into the chroot'ed system
                                             # Bash scripts within ~/ will be eval'ed!