Bug#573079: debian-edu-config: Building LTSP chroot fail when using CD without local component
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
I traced this to our LTSP overrides in
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.