X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=vserver-reference.init;h=bd9e48a2b60ae48710e8e0a498c224e788dc6b24;hb=76a55468abccd4a0817654d45fc6218dafaafd18;hp=cb239ecc0230b1aa8c043b2db17be20b12b20e4e;hpb=6d9349eb666d2e5da00787a8e11cb052acd9dc10;p=sliceimage.git diff --git a/vserver-reference.init b/vserver-reference.init index cb239ec..bd9e48a 100755 --- a/vserver-reference.init +++ b/vserver-reference.init @@ -2,15 +2,17 @@ # # 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. +# the build server to host a local yum repository. Already, it is +# required to run the same major version of yum as the nodes. # # Mark Huang # Copyright (C) 2004-2005 The Trustees of Princeton University # -# $Id: vserver-reference.init,v 1.10 2005/09/01 17:17:14 mlhuang Exp $ +# $Id: vserver-reference.init,v 1.14 2005/09/01 18:55:11 mlhuang Exp $ # -YUM_CONF="http://www.planet-lab.org/PlanetLabConf/v3-yum.conf" +# Get the URL for the production /etc/yum.conf file +YUM_CONF=http://www.planet-lab.org/$(curl --form node_id=0 --form file=/etc/yum.conf https://www.planet-lab.org/db/plnodeconf/getsinglefile.php) # Make /vservers VROOT=$PWD/vservers/vserver-reference @@ -102,7 +104,7 @@ umount $VROOT/dev/pts MAKEDEV # Disable all services in reference image -/usr/sbin/chroot $VROOT /bin/sh -c "chkconfig --list | awk '{ print \$1 }' | xargs -i chkconfig {} off" +/usr/sbin/chroot $VROOT /bin/sh -c "/sbin/chkconfig --list | awk '{ print \$1 }' | xargs -i /sbin/chkconfig {} off" # Clean up umount $VROOT/proc