#
# Builds VServer reference image. Requires the web and boot servers to
# be up, which complicates bootstrap. Alternatively, we could require
#
# Builds VServer reference image. Requires the web and boot servers to
# be up, which complicates bootstrap. Alternatively, we could require
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
-YUM_CONF="http://www.planet-lab.org/PlanetLabConf/v3-yum.conf"
+# Get the URL for the production /etc/yum.conf file. XXX When MAs
+# begin deploying their own boot servers and/or code, this will have
+# to change.
+YUM_CONF=http://boot.planet-lab.org/$(curl --silent --insecure --form node_id=0 --form file=/etc/yum.conf https://boot.planet-lab.org/db/plnodeconf/getsinglefile.php)
# completely new PlanetLab package must be installed in the reference
# image. To work around this limitation, introduce the new package in
# one release, then include it in the VServer yumgroup in the next.
# completely new PlanetLab package must be installed in the reference
# image. To work around this limitation, introduce the new package in
# one release, then include it in the VServer yumgroup in the next.
-FRESHEN=$RPM_BUILD_DIR/../RPMS/*/*.rpm
-if [ -n "$FRESHEN" ] ; then
- rpm --root $VROOT --freshen --verbose $FRESHEN
+if [ -d $RPM_BUILD_DIR/../RPMS ] ; then
+ rpm --root $VROOT --freshen --verbose $RPM_BUILD_DIR/../RPMS/*/*.rpm