Mercurial > hg > aboriginal
view sources/control-images/bootstrap-skeleton/mnt/init @ 1346:ffdc94c67308
Move do_in_chroot in control-images to setup-choot in system-image, and move zapchroot into system-image as well. New setup-chroot is more flexible, copying whatever existing host mounts you've got and with the ability to re-enter an existing chroot (if the target directory exists it'll just setup and tear down the bind mounts again without copying files).
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 13 Apr 2011 03:07:02 -0500 |
parents | fe5af321ed29 |
children | d16057658651 |
line wrap: on
line source
#!/bin/bash # Start running here, and hand off to run-build-stages.sh in chroot. . /mnt/functions.sh [ -z "$NATIVE_BUILD" ] && NATIVE_BUILD=chroot # 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. setup-chroot /home/"$NATIVE_BUILD" /mnt/run-build-stages.sh if [ $? -eq 0 ] then set_titlebar "upload tarball" tar czvf "$NATIVE_BUILD".tar.gz "$NATIVE_BUILD" | dotprogress && upload_result "$NATIVE_BUILD".tar.gz fi