[lxc-devel] [lxc/master] update Debian release names
evgeni on Github
lxc-bot at linuxcontainers.org
Wed Mar 30 20:52:35 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 399 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160330/d2f8f769/attachment.bin>
-------------- next part --------------
From 808652d14789bd6b1ad8e9113a22576cbbe20e69 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni at golov.de>
Date: Wed, 30 Mar 2016 22:50:48 +0200
Subject: [PATCH] update Debian release names
Squeeze is EOL now, Stretch is the upcoming stable
Signed-off-by: Evgeni Golov <evgeni at golov.de>
---
templates/lxc-debian.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index 6dd6604..1ed6f20 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -502,7 +502,7 @@ Options :
-p, --path=PATH directory where config and rootfs of this VM will be kept
-a, --arch=ARCH The container architecture. Can be one of: i686, x86_64,
amd64, armhf, armel, powerpc. Defaults to host arch.
- -r, --release=RELEASE Debian release. Can be one of: squeeze, wheezy, jessie, sid.
+ -r, --release=RELEASE Debian release. Can be one of: wheezy, jessie, stretch, sid.
Defaults to current stable.
--mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR
environment variable (see below).
@@ -610,7 +610,7 @@ fi
current_release=`wget ${MIRROR}/dists/stable/Release -O - 2> /dev/null | head |awk '/^Codename: (.*)$/ { print $2; }'`
release=${release:-${current_release}}
-valid_releases=('squeeze' 'wheezy' 'jessie' 'stretch' 'sid')
+valid_releases=('wheezy' 'jessie' 'stretch' 'sid')
if [[ ! "${valid_releases[*]}" =~ (^|[^[:alpha:]])$release([^[:alpha:]]|$) ]]; then
echo "Invalid release ${release}, valid ones are: ${valid_releases[*]}"
exit 1
More information about the lxc-devel
mailing list