projects
/
lxc-debian-unprivileged.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't bother with security urls for sid/unstable
[lxc-debian-unprivileged.git]
/
templates
/
lxc-debian-unprivileged
diff --git
a/templates/lxc-debian-unprivileged
b/templates/lxc-debian-unprivileged
index 89dbd50486b6c491d6552e6d6dfa695c6139d312..42ece9e509f61156e32cd1d97ff4ea4bd0c71fc8 100755
(executable)
--- 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"
# 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
# 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
EOF
# disable bits of systemd / initrd that break things