Merge pull request #5 from erickeller/wily

add Ubuntu wily release
This commit is contained in:
Michael Adam 2015-12-21 13:20:17 +01:00
commit b42a24e013
4 changed files with 16 additions and 6 deletions

View file

@ -1,4 +1,4 @@
UBUNTU_BOXES= precise quantal raring saucy trusty utopic vivid
UBUNTU_BOXES= precise quantal raring saucy trusty utopic vivid wily
DEBIAN_BOXES= squeeze wheezy sid jessie
CENTOS_BOXES= 6
FEDORA_BOXES= rawhide 23 22 21 20 19

View file

@ -26,7 +26,7 @@ fi
# If we got to this point, we need to create the container
log "Creating container..."
if [ $RELEASE = 'raring' ]; then
if [ $RELEASE = 'raring' ] || [ $RELEASE = 'wily' ]; then
utils.lxc.create -t ubuntu -- \
--release ${RELEASE} \
--arch ${ARCH}
@ -50,9 +50,9 @@ else
--release ${RELEASE} \
--arch ${ARCH}
fi
if [ ${DISTRIBUTION} = 'fedora' -o \
${DISTRIBUTION} = 'debian' -a ${RELEASE} = 'jessie' ]
if [ ${DISTRIBUTION} = 'fedora' ] ||\
[ ${DISTRIBUTION} = 'ubuntu' -a ${RELEASE} = 'wily' ] ||\
[ ${DISTRIBUTION} = 'debian' -a ${RELEASE} = 'jessie' ]
then
# Improve systemd support:
# - The fedora template does it but the fedora images from the download

10
conf/ubuntu-wily Normal file
View file

@ -0,0 +1,10 @@
# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu
# Parameters passed to the template: --release wily --arch amd64
# For additional config options, please look at lxc.container.conf(5)
# Common configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
# settings for systemd with PID 1:
lxc.kmsg = 0
lxc.autodev = 1

View file

@ -19,7 +19,7 @@ PACKAGES=(vim curl wget man-db openssh-server bash-completion python-software-pr
if [ $DISTRIBUTION = 'ubuntu' ]; then
PACKAGES+=' software-properties-common'
fi
if [ $RELEASE != 'raring' ] && [ $RELEASE != 'saucy' ] && [ $RELEASE != 'trusty' ] ; then
if [ $RELEASE != 'raring' ] && [ $RELEASE != 'saucy' ] && [ $RELEASE != 'trusty' ] && [ $RELEASE != 'wily' ] ; then
PACKAGES+=' nfs-common'
fi
utils.lxc.attach apt-get update