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
|
||||
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!"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue