From 6e382c156cc528a8b9f275967d1dc9ea25c1632d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 23 Dec 2014 01:12:31 +0100 Subject: [PATCH] fedora: support fedora 21. The download template doesn't have f21 (yet). So use fedora template for lxc-create. Signed-off-by: Michael Adam --- Makefile | 2 +- common/download.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e49c864..7f161e3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ UBUNTU_BOXES= precise quantal raring saucy trusty utopic DEBIAN_BOXES= squeeze wheezy sid jessie CENTOS_BOXES= 6 -FEDORA_BOXES= 20 19 +FEDORA_BOXES= 21 20 19 TODAY=$(shell date -u +"%Y-%m-%d") # Replace i686 with i386 and x86_64 with amd64 diff --git a/common/download.sh b/common/download.sh index 304b168..c883c27 100755 --- a/common/download.sh +++ b/common/download.sh @@ -34,6 +34,11 @@ elif [ $RELEASE = 'squeeze' ] || [ $RELEASE = 'wheezy' ]; then utils.lxc.create -t debian -- \ --release ${RELEASE} \ --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 utils.lxc.create -t download -- \ --dist ${DISTRIBUTION} \