From: Mark Huang Date: Sat, 3 Sep 2005 21:44:16 +0000 (+0000) Subject: Solve the bootstrap problem by including any just built packages in X-Git-Tag: BOOTMANAGER_PL_BOX_STABLE~3 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=774b03ae664c5bc38ab403e5284286a889d57126 Solve the bootstrap problem by including any just built packages in the yum configuration. This cooperates with the PlanetLab build system. --- 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 <