Bug#320024: patch for #320024

Henning Sprang henning_sprang at gmx.de
Thu Oct 20 00:26:29 CEST 2005


On Wed, 2005-10-19 at 21:56 +0200, Michael Tautschnig wrote:
> [...]
> > 
> > Still, your flexible solution is a better idea, but it would need to be
> > extended to handle the things described above correctly. I can try that,
> > I need some perl training anyway, but won't come to that today. If
> > you're faster, don't hesitate :)
> > I will test it here, tomorrow.
> > 
> 
> Well, the proposed patch is really flexible and probably also very clever - but
> as such it is also error-prone.



>  What is so bad about my proposal of a single
> variable, where each user can simply set the contents of sources.list - the
> defaults might be the current content in fai-cd; of course, we won't want to add
> some config file for a sarge-update, but it might as well be set in fai.conf or
> make-fai-nfsroot.conf (since an nfsroot is needed by fai-cd anyway).
> 
> IMHO this single variable would result in a maybe not that small, but really
> simple patch which can easily be verified be the Stable RMs.

For now I have only two options to compare, mine works with the default
config, even when producing some errors in the logs, at least in my
tests. Thomas' will not currently work, but can with some tweaking.

If I see an implementation of your proposal and can test it, I can say
which of the three I like most.

If it's nice, and at the same time closes and additional bug, then
that's best!

Another idea would be a an extra /etc/fai/fai-cd.sources.list file,
which only gets copied. But that can be dirty as well - we then have one
sources.list file, which gets read by fai-mirror to create the
repositories for the fai-cd. But to actually use those, you need a quite
different sources.list on the cd which you need to build from some
strange rules. The rule that worked for me is: if you include debian
security updates in /etc/fai/sources.list, you need to add an
"updates/main" to the repository line for the cd - if you don't want
errors in your logs you must remove that entry when not having the
security repository in /etc/fai/sources.list

Can't/shouldn't fai-mirror be tweaked so the fai-cd can work
successfully with the same sources.list that was used by fai-mirror, or
always with exactly the same one, so it doesn't need to be changed?

Henning




More information about the linux-fai-devel mailing list