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.19 2007/08/31 02:28:35 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
66 # vserver-reference packages used for reference image
67 for package in "${packagelist[@]}" ; do
68 packages="$packages -p $package"
71 # Do not tolerate errors
75 vroot=$PWD/vservers/.vref/default
76 install -d -m 755 $vroot
78 # Populate a minimal /dev in the reference image
81 # Populate image with vserver-reference packages
82 pl_setup_chroot $vroot $packages