X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=support-files%2Fbuildnode.sh;h=3fc005b5bae6dcd4c4f80470dbda78ed46acb374;hb=48beab6dd94246ff981ccd1acfe06ad96cf6dd54;hp=a005502998d0d9c7d124362560221e3912ae3241;hpb=b4a468d9bc9560e3647ea9b5325ca30ab3e5cf97;p=bootmanager.git diff --git a/support-files/buildnode.sh b/support-files/buildnode.sh index a005502..3fc005b 100755 --- a/support-files/buildnode.sh +++ b/support-files/buildnode.sh @@ -1,141 +1,87 @@ #!/bin/bash # # Build PlanetLab-Bootstrap.tar.bz2, the reference image for PlanetLab -# nodes. 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. +# nodes. # # Mark Huang -# Copyright (C) 2005 The Trustees of Princeton University +# Copyright (C) 2005-2006 The Trustees of Princeton University # -# $Id: buildnode.sh,v 1.3 2005/10/03 14:34:58 mlhuang Exp $ +# $Id: buildnode.sh,v 1.7 2006/04/05 21:45:34 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=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 <