Changes

Build Server

573 bytes added, 08:27, 22 August 2014
=== Setup ===
* Create a staging root and extract a stage3 or stage4 tarball:* Mount proc, sys and dev (required for portage to control the tty, determine available storage space, etc.)* Copy {{Path|/etc/resolv.conf}}* Enter the chroot
{{RootCmd
|mkdir -p stagingRoot{{=}}/var/staging/staging-base|mkdir -p "${stagingRoot}"|tar -xjpf /var/tmp/your-stage4.tbz2 -C "${stagingRoot}"|mount -t proc none "${stagingRoot}/varproc"|mount --rbind /stagingdev/staging"${stagingRoot}/dev/"|mount -base-rbind /sys/ "${stagingRoot}/sys/"|cp -af /etc/resolv.conf "${stagingRoot}/etc/"|chroot "${stagingRoot}" /usr/bin/env -i HOME{{=}}"/root" TERM{{=}}"${TERM}" /bin/bash --login|}} {{Note|We are deliberately using a special command to enter the chroot to avoid leaking environment variables}} 
[[Category:Infrastructure]]
Bureaucrat, administrator
425
edits