From 190321ea45ce9617cee41a54a19a72d092813395 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Tue, 13 Sep 2011 23:21:29 -0700 Subject: [PATCH] install deps --- build_lxc.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build_lxc.sh b/build_lxc.sh index 657dd8a..c019d7e 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -12,9 +12,17 @@ COPYENV=${COPYENV:-1} # Param string to pass to stack.sh. Like "EC2_DMZ_HOST=192.168.1.1 MYSQL_USER=nova" STACKSH_PARAMS=${STACKSH_PARAMS:-} -# Install cgroup-bin if we don't have it yet +# Install deps +apt-get install lxc debootstrap + +# Install cgroup-bin from source, since the packaging is buggy and possibly incompatible with our setup if ! which cgdelete | grep -q cgdelete; then - apt-get install cgroup-bin + apt-get install g++ bison flex libpam0g-dev + wget http://sourceforge.net/projects/libcg/files/libcgroup/v0.37.1/libcgroup-0.37.1.tar.bz2/download -O /tmp/libcgroup-0.37.1.tar.bz2 + cd /tmp && bunzip2 libcgroup-0.37.1.tar.bz2 && tar xfv libcgroup-0.37.1.tar + cd libcgroup-0.37.1 + ./configure + make install fi # Create lxc configuration