From f34ff296835b2afa4b80018651d902448c99ac75 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 31 Jul 2012 16:04:33 +0200 Subject: [PATCH] ubuntu templates: remove maverick as it is end-of-life MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- templates/lxc-ubuntu-cloud.in | 2 +- templates/lxc-ubuntu.in | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/templates/lxc-ubuntu-cloud.in b/templates/lxc-ubuntu-cloud.in index bc3047bc1..ba66623e6 100644 --- a/templates/lxc-ubuntu-cloud.in +++ b/templates/lxc-ubuntu-cloud.in @@ -139,7 +139,7 @@ release=lucid if [ -f /etc/lsb-release ]; then . /etc/lsb-release case "$DISTRIB_CODENAME" in - lucid|maverick|natty|oneiric|precise|quantal) + lucid|natty|oneiric|precise|quantal) release=$DISTRIB_CODENAME ;; esac diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 29060d181..0068d6718 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -152,8 +152,6 @@ download_ubuntu() if [ $release = "lucid" ]; then packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,dhcp3-client,ssh,lsb-release,gnupg - elif [ $release = "maverick" ]; then - packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,dhcp3-client,ssh,lsb-release,gnupg,netbase elif [ $release = "natty" ]; then packages=dialog,apt,apt-utils,resolvconf,iproute,inetutils-ping,vim,isc-dhcp-client,isc-dhcp-common,ssh,lsb-release,gnupg,netbase else @@ -479,11 +477,11 @@ post_process() if [ $trim_container -eq 1 ]; then trim $rootfs $release - elif [ $release = "lucid" -o $release = "maverick" -o $release = "natty" \ + elif [ $release = "lucid" -o $release = "natty" \ -o $release = "oneiric" ]; then - # for lucid and maverick, if not trimming, then add the ubuntu-virt + # for lucid, if not trimming, then add the ubuntu-virt # ppa and install lxcguest - if [ $release = "lucid" -o $release = "maverick" ]; then + if [ $release = "lucid" ]; then chroot $rootfs apt-get install --force-yes -y python-software-properties chroot $rootfs add-apt-repository ppa:ubuntu-virt/ppa fi @@ -571,7 +569,7 @@ usage() cat <] [--trim] [-d|--debug] [-F | --flush-cache] [-r|--release ] [ -S | --auth-key ] -release: lucid | maverick | natty | oneiric | precise | quantal +release: lucid | natty | oneiric | precise | quantal trim: make a minimal (faster, but not upgrade-safe) container bindhome: bind 's home into the container The ubuntu user will not be created, and will have @@ -593,7 +591,7 @@ release=lucid if [ -f /etc/lsb-release ]; then . /etc/lsb-release case "$DISTRIB_CODENAME" in - lucid|maverick|natty|oneiric|precise|quantal) + lucid|natty|oneiric|precise|quantal) release=$DISTRIB_CODENAME ;; esac