X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=support-files%2Fbuildnode.sh;h=a6e9396f0f1536d829c275d01af5550d5c0afe06;hb=774b03ae664c5bc38ab403e5284286a889d57126;hp=ba0884003ea429b5012db0b5c7522dfe50711f86;hpb=a80683dfc74fd84fac6c73d8c8a7adf3e1e26261;p=bootmanager.git diff --git a/support-files/buildnode.sh b/support-files/buildnode.sh index ba08840..a6e9396 100755 --- a/support-files/buildnode.sh +++ b/support-files/buildnode.sh @@ -9,13 +9,37 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id$ +# $Id: buildnode.sh,v 1.1 2005/09/02 19:09:58 mlhuang Exp $ # -# 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) +# 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 <