- run yum-arch on Bootstrap RPMS directory before using
[vserver-reference.git] / build.sh
index d270807..f7db0c9 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -8,12 +8,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2004-2005 The Trustees of Princeton University
 #
-# $Id: vserver-reference.init,v 1.17 2005/09/02 19:46:37 mlhuang Exp $
+# $Id: build.sh,v 1.2 2005/10/01 18:20:08 mlhuang Exp $
 #
 
 # Get the production /etc/yum.conf file. XXX When MAs begin deploying
 # their own boot servers and/or code, this will have to change.
-curl --silent 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) > yum.conf
+curl --silent http://boot.planet-lab.org/$(curl --silent --insecure --form node_id=1 --form file=/etc/yum.conf https://boot.planet-lab.org/db/plnodeconf/getsinglefile.php) > yum.conf
 
 # Solve the bootstrap problem by including any just built packages in
 # the yum configuration. This cooperates with the PlanetLab build
@@ -33,6 +33,7 @@ d
 EOF
 
     # And replace them with a section for the RPMS that were just built
+    yum-arch $(dirname $RPM_BUILD_DIR)/RPMS
     cat >> yum.conf <<EOF
 [Bootstrap]
 name=Bootstrap RPMS -- $(dirname $RPM_BUILD_DIR)/RPMS/