hangs

Yaroslav Halchenko debian at onerussian.com
Thu Oct 23 06:16:29 CEST 2003


Hm... I've sent an email before where I described where problem is but
probably it was bounced... Anyway here is the solution to the problem :-))

--- /usr/share/fai/subroutines-linux    2003-10-10 09:01:13.000000000 -0400
+++ /home/fai/nfsroot/usr/share/fai/subroutines-linux   2003-10-22 23:49:38.000000000 -0400
@@ -113,7 +113,7 @@
     if [ "$debug" ]; then
        install_packages | tee -a $LOGDIR/software.log
     elif [ "$verbose" ]; then
-       yes '' | install_packages 2>&1 | tee -a $LOGDIR/software.log
+       bash -c "(yes '' | install_packages) > >( tee -a $LOGDIR/software.log ) 2>&1"
     else
        yes '' | install_packages >> $LOGDIR/software.log 2>&1
     fi

--Yarik

On Wed, Oct 22, 2003 at 10:33:22PM -0400, Yaroslav Halchenko wrote:
> That doesn't fix the problem. First before that I moved to sid with
> installing sid. I even managed to install previousely 'hanging-FAI'
> packages but then I add couple more and I've got problem back. Then I
> tuned MAXPACKAGES to be tiny number like 40 but it didn't help. And if
> you check rcS.log on 
> 
> www.onerussian.com/FAI/problems/p01
> 
> you will see that anyway FAI runs tasksel for quite a few categories and
> that feeds apt-get with pretty big set of packages which defeats purpose
> of MAXPACKAGES at all at this point. Later FAI tries to feed apt-get
> with as max 40 packages at ones but that doesn't help...
> 
> --Yarik  
> 
> On Wed, Oct 22, 2003 at 11:00:28AM +0200, Thomas Lange wrote:
> > >>>>> On Wed, 22 Oct 2003 00:22:49 +0200 (SAST), Ludwig Schwardt <schwardt at dsp.sun.ac.za> said:
> > 
> >     > subroutines-linux, to not much avail. I guess the problem arises
> >     > from the huge package lists install_package tries to handle at
> >     > once - not a good idea IMO.  Can't remember, is this fixed in
> >     > 2.5?
> > 
> > You can use the variable MAXPACKAGES to limit the number of packages
> > that are passed to apt-get in one call. The default is set to 4711.
> > Set this variable in fai.conf or in a file class/*.var.
> > -- 
> > regrads Thomas
>                                   .-.
> =------------------------------   /v\  ----------------------------=
> Keep in touch                    // \\     (yoh@|www.)onerussian.com
> Yaroslav Halchenko              /(   )\               ICQ#: 60653192
>                    Linux User    ^^-^^    [175555]
>              Key  http://www.onerussian.com/gpg-yoh.asc
> GPG fingerprint   3BB6 E124 0643 A615 6F00  6854 8D11 4563 75C0 24C8
> 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]
             Key  http://www.onerussian.com/gpg-yoh.asc
GPG fingerprint   3BB6 E124 0643 A615 6F00  6854 8D11 4563 75C0 24C8




More information about the linux-fai mailing list