patch for #320024
Henning Sprang
henning_sprang at gmx.de
Wed Oct 19 18:56:39 CEST 2005
On Wed, 2005-10-19 at 00:28 +0200, Thomas Lange wrote:
> Try this one please.
>
> [~]> diff /usr/sbin/fai-cd .
> 206a207,210
> >
> > # which components are available? main, contrib non-free
> > components=$(find $mirrordir/dists/stable/* -maxdepth 0 -type d -printf "%f\n")
> >
> 214c218
> < deb file:/media/mirror testing main contrib non-free
> ---
> > deb file:/media/mirror stable $components
Nope. This one also doesn't work in my tests. I had some more testing
fun yesterday evening and today. I'll explain:
I found another tricky thing with fai-mirror.
When I don't uncomment the apt repository entry for the security updates
in /etc/fai/sources.list, which is uncommented by default, fai-mirror
also puts and extra Packages file in
$mirrordir/dists/stable/updates/main
That one gets neither catched by my last hardcoded solution nor by your
new, flexible solution. And because there are some important packages,
installs wont run. I fell on this today, I did obviously uncomment and
comment it a bit too randomly the last days when I was tired of too long
waiting, didn't think it could change something, but today I couldn't
produce a running cd until I found that.
I tried hardcoding line 214 to be
deb file:/media/mirror stable main updates/main
and just saw that this works, even if the security repository is not
included, it creates some errors in the log that the package lists for
the updates part are missing, but as there are no packages that are
needed (actually, there are none), it's only an error/warning in the
log.
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.
Henning
More information about the linux-fai-devel
mailing list