boxes: Support for building raring machines
This commit is contained in:
parent
e598086913
commit
7effe1f092
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||||
--dist ${DISTRIBUTION} \
|
lxc-create -n ${CONTAINER} -t ubuntu -- \
|
||||||
--release ${RELEASE} \
|
--release ${RELEASE} \
|
||||||
--arch ${ARCH}
|
--arch ${ARCH}
|
||||||
|
else
|
||||||
# TODO: Nicely handle boxes that don't have an image associated
|
lxc-create -n ${CONTAINER} -t download -- \
|
||||||
|
--dist ${DISTRIBUTION} \
|
||||||
|
--release ${RELEASE} \
|
||||||
|
--arch ${ARCH}
|
||||||
|
fi
|
||||||
log "Container created!"
|
log "Container created!"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue