Add sources.list support for squeeze-lts
authorMichael Prokop <mika@grml.org>
Mon, 13 Oct 2014 09:36:12 +0000 (11:36 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 13 Oct 2014 10:14:22 +0000 (12:14 +0200)
chroot-script

index c291ffc..289773b 100755 (executable)
@@ -86,6 +86,16 @@ chrootmirror() {
     fi
   fi
 
     fi
   fi
 
+  # LTS support
+  case "$RELEASE" in
+    squeeze)
+      if [ -n "$MIRROR" ] ; then
+        echo "Release matching $RELEASE - enabling LTS support in sources.list"
+        echo "deb $MIRROR ${RELEASE}-lts $COMPONENTS" >> /etc/apt/sources.list
+      fi
+      ;;
+  esac
+
   # add security.debian.org:
   case "$RELEASE" in
     unstable|sid|lenny) ;;  # no security pool available
   # add security.debian.org:
   case "$RELEASE" in
     unstable|sid|lenny) ;;  # no security pool available