X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.sh;h=af9c5891add705892ff9de3d6de3f3d3e9f7bfd0;hb=e01407b25d5e55e4ff342bcd95998fc5f1263e62;hp=f7db0c9fbc22420d000a37812595524d70272f9f;hpb=e68eff749575e7cec6f8f06a74f1de6ca993cd45;p=sliceimage.git diff --git a/build.sh b/build.sh index f7db0c9..af9c589 100755 --- a/build.sh +++ b/build.sh @@ -1,130 +1,124 @@ #!/bin/bash # -# Builds VServer reference image. Requires the web and boot servers to -# be up, which complicates bootstrap. Alternatively, we could require -# the build server to host a local yum repository. Already, it is -# required to run the same major version of yum as the nodes. +# Builds VServer reference image # # Mark Huang -# Copyright (C) 2004-2005 The Trustees of Princeton University +# Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: build.sh,v 1.2 2005/10/01 18:20:08 mlhuang Exp $ +# $Id$ # -# 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=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 -# system. -if [ -n "$RPM_BUILD_DIR" ] ; then - # Remove any [PlanetLab*] sections - sed -i -f - yum.conf <> yum.conf < $VROOT/etc/fstab < $VROOT/etc/rpm/macros <