[lxc-devel] [PATCH] lxc-debian: skip security updates for unstable/sid
Antonio Terceiro
terceiro at debian.org
Thu Jul 16 15:13:16 UTC 2015
There is no such thing as security support for unstable/sid.
---
templates/lxc-debian.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index d9f0f03..3914605 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -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()
--
2.1.4
More information about the lxc-devel
mailing list