don't name proto filesystem nfs

This commit is contained in:
Jesse Andrews 2011-09-11 15:42:17 -07:00
parent 8622bf2f39
commit 1639ed6601

View file

@ -3,30 +3,28 @@
# TODO: make dest not hardcoded # TODO: make dest not hardcoded
NAME=$1 NAME=$1
DEST="/boxes/$NAME/nfs" DEST="/nfs/$NAME"
mkdir -p /boxes/$NAME
# remove old nfs filesystem if one exists # remove old nfs filesystem if one exists
rm -rf $DEST rm -rf $DEST
# build a proto image - natty + packages that will install (optimization) # build a proto image - natty + packages that will install (optimization)
if [ ! -d nfs ]; then if [ ! -d nfs ]; then
debootstrap natty nfs debootstrap natty proto
cp sources.list nfs/etc/apt/sources.list cp sources.list proto/etc/apt/sources.list
chroot nfs apt-get update chroot proto apt-get update
chroot nfs apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"` chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"`
chroot nfs pip install `cat pips/* | cut -d\# -f1` chroot proto pip install `cat pips/* | cut -d\# -f1`
git clone https://github.com/cloudbuilders/nova.git nfs/opt/nova git clone https://github.com/cloudbuilders/nova.git proto/opt/nova
git clone https://github.com/cloudbuilders/openstackx.git nfs/opt/openstackx git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx
git clone https://github.com/cloudbuilders/noVNC.git nfs/opt/noVNC git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC
git clone https://github.com/cloudbuilders/openstack-dashboard.git nfs/opt/dash git clone https://github.com/cloudbuilders/openstack-dashboard.git proto/opt/dash
git clone https://github.com/cloudbuilders/python-novaclient.git nfs/opt/python-novaclient git clone https://github.com/cloudbuilders/python-novaclient.git proto/opt/python-novaclient
git clone https://github.com/cloudbuilders/keystone.git nfs/opt/keystone git clone https://github.com/cloudbuilders/keystone.git proto/opt/keystone
git clone https://github.com/cloudbuilders/glance.git nfs/opt/glance git clone https://github.com/cloudbuilders/glance.git proto/opt/glance
fi fi
cp -pr nfs $DEST cp -pr proto $DEST
# set hostname # set hostname
echo $NAME > $DEST/etc/hostname echo $NAME > $DEST/etc/hostname