]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: skip security updates for unstable/sid
authorAntonio Terceiro <terceiro@debian.org>
Sat, 18 Jul 2015 23:24:12 +0000 (20:24 -0300)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Aug 2015 20:33:47 +0000 (16:33 -0400)
There is no such thing as security support for unstable/sid.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-debian.in

index 6628fc924263bc4cff5397756bed2e7f3b9f5f76..b57e526ea8f69c0c2f1a8b0d168d425b98162ddb 100644 (file)
@@ -159,8 +159,13 @@ write_sourceslist()
 
     cat >> "${rootfs}/etc/apt/sources.list" << EOF
 ${prefix} $MIRROR          ${release}         main contrib non-free
+EOF
+
+    if [ "$release" != "unstable" -a "$release" != "sid" ]; then
+      cat >> "${rootfs}/etc/apt/sources.list" << EOF
 ${prefix} $SECURITY_MIRROR ${release}/updates main contrib non-free
 EOF
+    fi
 }
 
 install_packages()