]> git.sommitrealweird.co.uk Git - lxc-debian-unprivileged.git/commitdiff
Don't bother with security urls for sid/unstable
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 22 May 2016 10:37:43 +0000 (11:37 +0100)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 22 May 2016 10:37:43 +0000 (11:37 +0100)
templates/lxc-debian-unprivileged

index 89dbd50486b6c491d6552e6d6dfa695c6139d312..42ece9e509f61156e32cd1d97ff4ea4bd0c71fc8 100755 (executable)
@@ -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 <<EOF > "${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