]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: allow creating `testing` and `unstable`
authorAntonio Terceiro <terceiro@debian.org>
Thu, 26 Oct 2017 22:42:49 +0000 (20:42 -0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 Nov 2017 00:13:43 +0000 (01:13 +0100)
Being able to create `testing` containers, regardless of what's the name
of the next stable, is useful in several contexts, included but not
limited to testing purposes. i.e. one won't need to explicitly switch to
`bullseye` once `buster` is released to be able to continue tracking
`testing`. While we are at it, let's also enable `unstable`, which is
exactly the same as `sid`, but there is no reason for not being able to.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
templates/lxc-debian.in

index a4eb84d3d4b1507fdc96809d29f948127c241a3a..d02ca7013b1b125bc2f9d13bbeb9dcc6e2c54fbc 100644 (file)
@@ -616,7 +616,7 @@ fi
 
 current_release=$(wget "${MIRROR}/dists/stable/Release" -O - 2> /dev/null | head |awk '/^Codename: (.*)$/ { print $2; }')
 release=${release:-${current_release}}
-valid_releases=('wheezy' 'jessie' 'stretch' 'buster' 'sid')
+valid_releases=('wheezy' 'jessie' 'stretch' 'buster' 'testing' 'sid' 'unstable')
 if [[ ! "${valid_releases[*]}" =~ (^|[^[:alpha:]])$release([^[:alpha:]]|$) ]]; then
     echo "Invalid release ${release}, valid ones are: ${valid_releases[*]}"
     exit 1