From: Michael Prokop Date: Fri, 11 Mar 2011 10:17:25 +0000 (+0100) Subject: Add security.debian.org to sources.list (except for unstable/sid). [Closes: issue967] X-Git-Tag: v0.44~2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=5c9bdb3231969bc0660ca53847474fd0628b4f07 Add security.debian.org to sources.list (except for unstable/sid). [Closes: issue967] Signed-off-by: Michael Prokop --- diff --git a/chroot-script b/chroot-script index 00bcb6b..470a111 100755 --- a/chroot-script +++ b/chroot-script @@ -61,9 +61,23 @@ chrootmirror() { if [ -n "$ISO" ] ; then echo "deb $ISO $RELEASE $COMPONENTS" > /etc/apt/sources.list [ -n "$MIRROR" ] && echo "deb $MIRROR $RELEASE $COMPONENTS" >> /etc/apt/sources.list || true + # add security.debian.org: + case "$RELEASE" in + unstable|sid) ;; # no security pool available + *) + echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list + ;; + esac else if [ -n "$MIRROR" ] ; then echo "deb $MIRROR $RELEASE $COMPONENTS" > /etc/apt/sources.list + # add security.debian.org: + case "$RELEASE" in + unstable|sid) ;; # no security pool available + *) + echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list + ;; + esac fi fi }