Bug#573079: debian-edu-config: Building LTSP chroot fail when using CD without local component
[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
Reply to: