From 7effe1f092f00156f0b8e23ee86aae6da9ab3c14 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 9 Mar 2014 17:54:03 -0300 Subject: [PATCH] boxes: Support for building raring machines --- boxes/common/download.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/boxes/common/download.sh b/boxes/common/download.sh index 2ae9b99..f39d1ba 100755 --- a/boxes/common/download.sh +++ b/boxes/common/download.sh @@ -25,13 +25,16 @@ fi # If we got to this point, we need to create the container log "Creating container..." -lxc-create -n ${CONTAINER} -t download -- \ - --dist ${DISTRIBUTION} \ - --release ${RELEASE} \ - --arch ${ARCH} - -# TODO: Nicely handle boxes that don't have an image associated - +if [ $RELEASE = 'raring' ]; then + lxc-create -n ${CONTAINER} -t ubuntu -- \ + --release ${RELEASE} \ + --arch ${ARCH} +else + lxc-create -n ${CONTAINER} -t download -- \ + --dist ${DISTRIBUTION} \ + --release ${RELEASE} \ + --arch ${ARCH} +fi log "Container created!"