Bug#573079: debian-edu-config: Building LTSP chroot fail when using CD without local component

2010-03-14 Thread Petter Reinholdtsen
[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



Bug#573079: debian-edu-config: Building LTSP chroot fail when using CD without local component

2010-03-08 Thread Petter Reinholdtsen

package:  debian-edu-config
severity: serious
version:  1.436
User: debian-...@lists.debian.org
Usertags: debian-edu

When installing using the testing based netinst CD, generating the
LTSP chroot fail because apt is unable to fetch
file:/cdrom/dists/squeeze/local/binary-i386/Packages.gz.  The CD do
not have a local part, so apt should not really be looking for this
file.

I traced this to our LTSP overrides in
/usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/015-edu-apt-source,
where we add the local component every time a CD is used.

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.

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