3 # Builds VServer reference image
5 # Mark Huang <mlhuang@cs.princeton.edu>
6 # Copyright (C) 2004-2006 The Trustees of Princeton University
8 # $Id: build.sh,v 1.18.2.1 2007/08/30 16:39:09 mef Exp $
11 PATH=/sbin:/bin:/usr/sbin:/usr/bin
13 # In both a normal CVS environment and a PlanetLab RPM
14 # build environment, all of our dependencies are checked out into
15 # directories at the same level as us.
16 if [ -d ../build ] ; then
20 echo "Error: Could not find $(cd .. && pwd -P)/build/"
26 # build.common comes from the build module
29 pl_process_fedora_options $@
33 # XXX this should be coming from some configuration file
65 # vserver-reference packages used for reference image
66 for package in "${packagelist[@]}" ; do
67 packages="$packages -p $package"
70 # Do not tolerate errors
74 vroot=$PWD/vservers/.vref/default
75 install -d -m 755 $vroot
77 # Populate a minimal /dev in the reference image
80 # Populate image with vserver-reference packages
81 pl_setup_chroot $vroot $packages