X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=support-files%2Fbuildnode.sh;h=0bbc6eadcd92c28598a91fdf5bd306634e245368;hb=e21e3512b12d0c6148c1aee684991546e5b7320f;hp=a6e9396f0f1536d829c275d01af5550d5c0afe06;hpb=774b03ae664c5bc38ab403e5284286a889d57126;p=bootmanager.git diff --git a/support-files/buildnode.sh b/support-files/buildnode.sh index a6e9396..0bbc6ea 100755 --- a/support-files/buildnode.sh +++ b/support-files/buildnode.sh @@ -1,141 +1,90 @@ #!/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.1 2005/09/02 19:09:58 mlhuang Exp $ +# $Id: buildnode.sh,v 1.10 2006/04/11 22:13:18 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 - -# 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 <