From 3c4acaae7d85ef51ffe2d0a861bc456cf212c3ab Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 29 Mar 2006 17:08:45 +0000 Subject: [PATCH] - build vserver-reference using mkfedora script --- build.sh | 162 ++++++++++++++++--------------------------------------- 1 file changed, 45 insertions(+), 117 deletions(-) diff --git a/build.sh b/build.sh index 4bd4dd2..58f8bcb 100755 --- a/build.sh +++ b/build.sh @@ -1,136 +1,64 @@ #!/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.3 2006/03/10 18:20:28 mlhuang Exp $ +# $Id: build.sh,v 1.4 2006/03/21 14:57:29 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 <