view sources/native-builds/gentoo-bootstrap/build/init @ 1252:ba951c11fb48

Refactor the gentoo bootstrap build some more. Add "build" and "files" subdirectories, split each package build into a separate file, break out reusable shell functions into Flow control now init chrooting into calling the individual package scripts.
author Rob Landley <>
date Sat, 25 Sep 2010 13:40:04 -0500
parents sources/native-builds/gentoo-bootstrap/files/init@204238871b7c
line wrap: on
line source


# Start running, and hand off to in chroot.

. /mnt/

# Always chroot, because even if root filesystem is writeable it's hard to
# tell tar to skip /proc and /sys and such without unmounting bits of the
# host environment.

do_in_chroot /home/chroot /mnt/

if [ $RC -eq 0 ]
  set_titlebar "upload tarball"
  tar czvf gentoo-stage1.tar.gz gentoo-stage1 | dotprogress &&
  upload_result gentoo-stage1.tar.gz