fedora: support fedora 21.

The download template doesn't have f21 (yet).
So use fedora template for lxc-create.

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Michael Adam 2014-12-23 01:12:31 +01:00
parent d3705133a9
commit 6e382c156c
2 changed files with 6 additions and 1 deletions

View file

@ -1,7 +1,7 @@
UBUNTU_BOXES= precise quantal raring saucy trusty utopic UBUNTU_BOXES= precise quantal raring saucy trusty utopic
DEBIAN_BOXES= squeeze wheezy sid jessie DEBIAN_BOXES= squeeze wheezy sid jessie
CENTOS_BOXES= 6 CENTOS_BOXES= 6
FEDORA_BOXES= 20 19 FEDORA_BOXES= 21 20 19
TODAY=$(shell date -u +"%Y-%m-%d") TODAY=$(shell date -u +"%Y-%m-%d")
# Replace i686 with i386 and x86_64 with amd64 # Replace i686 with i386 and x86_64 with amd64

View file

@ -34,6 +34,11 @@ elif [ $RELEASE = 'squeeze' ] || [ $RELEASE = 'wheezy' ]; then
utils.lxc.create -t debian -- \ utils.lxc.create -t debian -- \
--release ${RELEASE} \ --release ${RELEASE} \
--arch ${ARCH} --arch ${ARCH}
elif [ ${DISTRIBUTION} = 'fedora' -a ${RELEASE} = '21' ]; then
ARCH=$(echo ${ARCH} | sed -e "s/38/68/" | sed -e "s/amd64/x86_64/")
utils.lxc.create -t fedora --\
--release ${RELEASE} \
--arch ${ARCH}
else else
utils.lxc.create -t download -- \ utils.lxc.create -t download -- \
--dist ${DISTRIBUTION} \ --dist ${DISTRIBUTION} \