From: Antonio Terceiro Date: Sat, 18 Jul 2015 23:24:12 +0000 (-0300) Subject: lxc-debian: skip security updates for unstable/sid X-Git-Tag: lxc-1.1.3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7db0fc5a2e74828336eb7149b4b05697986ec16;p=thirdparty%2Flxc.git lxc-debian: skip security updates for unstable/sid There is no such thing as security support for unstable/sid. Signed-off-by: Antonio Terceiro Acked-by: Stéphane Graber --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 6628fc924..b57e526ea 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -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()