boxes: Support for building raring machines

This commit is contained in:
Fabio Rehm 2014-03-09 17:54:03 -03:00
parent e598086913
commit 7effe1f092

View file

@ -25,13 +25,16 @@ fi
# If we got to this point, we need to create the container # If we got to this point, we need to create the container
log "Creating container..." log "Creating container..."
lxc-create -n ${CONTAINER} -t download -- \ if [ $RELEASE = 'raring' ]; then
lxc-create -n ${CONTAINER} -t ubuntu -- \
--release ${RELEASE} \
--arch ${ARCH}
else
lxc-create -n ${CONTAINER} -t download -- \
--dist ${DISTRIBUTION} \ --dist ${DISTRIBUTION} \
--release ${RELEASE} \ --release ${RELEASE} \
--arch ${ARCH} --arch ${ARCH}
fi
# TODO: Nicely handle boxes that don't have an image associated
log "Container created!" log "Container created!"