fedora: support fedora 21.
authorMichael Adam <obnox@samba.org>
Tue, 23 Dec 2014 00:12:31 +0000 (01:12 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 7 Dec 2015 09:44:06 +0000 (10:44 +0100)
The download template doesn't have f21 (yet).
So use fedora template for lxc-create.

Signed-off-by: Michael Adam <obnox@samba.org>
Makefile
common/download.sh

index e49c8646d13e094d6c842bcbf1a4069dc13e8fe2..7f161e38b09256a4df6372309c33a9e8a941a0be 100644 (file)
--- 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
index 304b168b7a765a88c56bbff4b2bdca284344931e..c883c2751d5dae61d62ec824cdedce83b4ff8470 100755 (executable)
@@ -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} \