[Petter Reinholdtsen]
> The fix is probably to make this code conditional, by mounting the CD
> and checking .disk/base_components or something similar to see if the
> CD contain a local component.

Here is a draft patch.

Index: 015-edu-apt-source
===================================================================
--- 015-edu-apt-source  (revision 63199)
+++ 015-edu-apt-source  (working copy)
@@ -8,7 +8,12 @@
             LTSP_CDROM_INSTALL=true
             APT_GET_OPTS="$APT_GET_OPTS \
                            --allow-unauthenticated"
-            COMPONENTS="$COMPONENTS local"
+           # Make sure LTSP use a local repository if it is used by
+           # the system too.  XXX Should really check the CD for list
+           # of components.
+           if grep ^deb /etc/apt/sources.list | grep ' local' ; then
+                       COMPONENTS="$COMPONENTS local"
+           fi
 
             # also disable gpg verification for debootstrap,
             # used in ltsp 5.1.10-2


Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to