]> 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:31:16 +0000 (16:31 -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 d9f0f03cb8dd51f8b7ff0817ea22dfa7507056a7..39146054cd238cd1bfaa2974de007d3e7cbb9617 100644 (file)
@@ -161,8 +161,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()