]> 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>
Fri, 14 Aug 2015 17:29:33 +0000 (13:29 -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 a60e9e7df68c336aeca65b569c4f0612461c5c3b..61aecc62155d9e3fcce7ddb18ba645aec9cf872b 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
 }
 
 configure_debian_systemd()