From c78ef9dd218c56e06ee0b2037963b25b56ed7903 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 22 May 2016 11:37:43 +0100 Subject: [PATCH] Don't bother with security urls for sid/unstable --- templates/lxc-debian-unprivileged | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/lxc-debian-unprivileged b/templates/lxc-debian-unprivileged index 89dbd50..42ece9e 100755 --- a/templates/lxc-debian-unprivileged +++ b/templates/lxc-debian-unprivileged @@ -206,10 +206,15 @@ sed -i -e 's#^\(session.*required.*pam_loginuid.so\)#\#\1#;' "${LXC_ROOTFS}"/etc # set the hostname echo $LXC_NAME > "${LXC_ROOTFS}/etc/hostname" +SECURITY="" +if [ "$DEBIAN_RELEASE" != "sid" ] && [ "$DEBIAN_RELEASE" != "unstable" ]; then + SECURITY="deb http://security.debian.org/ $DEBIAN_RELEASE/updates main" +fi + # setup sources.list cat < "${LXC_ROOTFS}/etc/apt/sources.list" deb $DEBIAN_MIRROR $DEBIAN_RELEASE main -deb http://security.debian.org/ $DEBIAN_RELEASE/updates main +$SECURITY EOF # disable bits of systemd / initrd that break things -- 2.30.2