Re: tg3 network cards [SOLVED]

2008-12-19 Diskussionsfäden Ralf Utermann
Ryan Steele wrote:
[...]
 And I forgot to mention also, that I have to use a custom script to
 rewrite the IP in the boot.log, otherwise at the end of the
 installation, fai-chboot fails to connect to the server and change the
 pxelinux.cfg file to foo.disable.  Here is that script:
 
 #! /bin/bash
 
 error=0 ; trap error=$((error|1)) ERR
 
 set -x
 
 REALIP=$(echo `host $(cat $target/etc/hostname) | awk '{print $4}'`)
 perl -i -pe s/^IPADDR=all(.*)/IPADDR='$REALIP'$3/ $LOGDIR/boot.log
 
 exit $error
 

Hi Ryan,


this script is probably not needed, if you fix 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509090

Bye, Ralf
-- 
Ralf Utermann
_
Universität Augsburg, Institut für Physik   --   EDV-Betreuer
Universitätsstr.1 
D-86135 Augsburg Phone:  +49-821-598-3231
SMTP: ralf.uterm...@physik.uni-augsburg.de Fax: -3411


Re: tg3 network cards [SOLVED]

2008-12-19 Diskussionsfäden Ryan Steele

Ralf Utermann wrote:

Ryan Steele wrote:
[...]
  

And I forgot to mention also, that I have to use a custom script to
rewrite the IP in the boot.log, otherwise at the end of the
installation, fai-chboot fails to connect to the server and change the
pxelinux.cfg file to foo.disable.  Here is that script:

#! /bin/bash

error=0 ; trap error=$((error|1)) ERR

set -x

REALIP=$(echo `host $(cat $target/etc/hostname) | awk '{print $4}'`)
perl -i -pe s/^IPADDR=all(.*)/IPADDR='$REALIP'$3/ $LOGDIR/boot.log

exit $error




Hi Ryan,


this script is probably not needed, if you fix 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509090

Bye, Ralf
  

Cool, thanks for the patch Ralf, I'll be testing it out.

Happy Holidays,
Ryan


Re: tg3 network cards [SOLVED]

2008-12-12 Diskussionsfäden Ralf Utermann
Ryan Steele wrote:
[...]
 
 Ah, I (think I) forgot to tell you that I had to put 'ip=all' in the
 pxelinux.cfg, otherwise you either hang or get kernel panics.
 
 Basically, when we PXE boot with the pxelinux.cfg file set up by
 fai-chboot using ip=dhcp, we end up using the /scripts/live shell
 script, which uses the 'ipconfig' binary.  But, we need to tell ipconfig
 to time out for an interface for which it can't find a DHCP server,
 which is what configure_networking does using 'ipconfig -t'.  I'm not
 
 the configure_networking, which my lenny/fai3.2.14 puts into the
 generated initrd has no -t in any ipconfig call.
   
 
 Well, what's stopping you from adding it?  :)
[...]
Hi Ryan, nothing had been stopping me, I had already tested with
various timeouts. The big winner is of course the combination of
timeout and the 'ip=all' in the kernel command line, which I never
tested together:( Sigh. So now it does work. Thanks for your input!

I'm not sure who else is still reading our quite lengthy tg3 thread,
maybe we should post a résumé with a subject like 'multiple network
interfaces' ...

An another point: for the first tests I manually changed the initrd, but
for going in production I prefer make-fai-nfsroot just coming back
with the initrd I need. Maybe I don't see it, does FAI provide a
standard means for this? I added some lines to the copy_fai_files() function,
to put a hook script in the nfsroot's initramfs-tools,  patch files into
the nfsroot and added 'patch' to /etc/fai/NFSROOT

Bye, Ralf
-- 
Ralf Utermann
_
Universität Augsburg, Institut für Physik   --   EDV-Betreuer
Universitätsstr.1 
D-86135 Augsburg Phone:  +49-821-598-3231
SMTP: ralf.uterm...@physik.uni-augsburg.de Fax: -3411


Re: tg3 network cards [SOLVED]

2008-12-12 Diskussionsfäden Thomas Lange
 On Fri, 12 Dec 2008 13:34:09 +0100, Ralf Utermann 
 ralf.uterm...@physik.uni-augsburg.de said:

 An another point: for the first tests I manually changed the initrd, but
 for going in production I prefer make-fai-nfsroot just coming back
 with the initrd I need. Maybe I don't see it, does FAI provide a
 standard means for this?
No, make-fai-nfsroot can only reinstall the kernels inside the
nfsroot (options -k and -K). This may not what you need.

You can also chroot into the nfsroot and call
dpkg-reconfigure linux-image-

This will rebuild the initrd.
-- 
regards Thomas