fai-mirror source.list.d/xyz not used (bug)

C. V. list-user at backenhoernchen.de
Tue May 17 06:53:20 CEST 2011


I use the feature of apt to seperate my source.list into different files. They are located in the folder /etc/apt/source.lis.d/.

Accordingly, the same feature I used in my configuration of /etc/fai/apt/...
I noticed that the lists in the folder /etc/fai/apt/source.lis.d/ are not used. A look into fai-mirror reviled that you are not taking them into account.

This might not be a bug per-se but is a behaviour, which is not expected by a (skilled) Debian administrator. To patch this bug, I needed only one line of execution code. 

Here is the diff:

--- fai-mirror  2011-05-15 08:31:19.000000000 +0200
+++ fai-mirror.corrected-3.4.7  2011-05-17 06:51:17.000000000 +0200
@@ -271,6 +271,9 @@

 # TODO: use -p to preserve sources.list
 perl -p -e 's/file:/copy:/' $cfdir/apt/sources.list > $aptcache/etc/apt/sources.list
+# Do not forget the sources in directory $cfdir/apt/sources.list.d
+# Let#s do this quick'n dirty
+perl -p -e 's/file:/copy:/' $cfdir/apt/sources.list.d/* >> $aptcache/etc/apt/sources.list

 echo "Getting package information"
 apt-get $qflag $aptoptions update >/dev/null

I hope this helps to improve the stable release.


More information about the linux-fai mailing list