[PATCH] patch to speed up bootpc queries

Phil pbi at cartel-info.fr
Thu Jan 3 16:41:06 CET 2002


On Thu, 3 Jan 2002, Thomas Lange wrote:

> >>>>> On Thu, 3 Jan 2002 16:11:23 +0100 (CET), Phil <pbi at cartel-info.fr> said:
>
>     > Hi, When rcS_fai tries to get bootp parameters, it does a query
>     > on every interface the machine has. This can take a lot of time
>     > for nothing.
>
> This could be made much simpler. If the variable $netdevices is
> defined, then only this list of interfaces is used and not all
> available ethernet devices. Define this variable in /etc/fai.conf (the
> next fai version will use /etc/fai/fai.conf) and rebuild the nfsroot
> or copy trhis file to $NFSROOT/etc/fai.conf. Here's an example
>
> /etc/fai.conf:
> netdevices=eth0

This is not so easy as you can't be sure about which interface will become
eth0 or eth1. For example, the machine I'm using has a dual eepro100. I've
pluged the wire on LAN1 and it became eth1 (and LAN2 is eth0).
So if I want to carry on using LAN1, I must put netdevices=eth1. But I
won't be able to install machines with only one NIC.

Moreover, I don't see why every NIC in $netdevices should query a bootp
server. One answered query should be enough.

I agree we should test if the query is correctly answerd (ie with T17?
options) to stop asking bootp servers.
I also agree that, with my patch, you can query twice on the same NIC.

Am I broken ? ;)


-- 
Philippe Biondi <pbi@ cartel-info.fr>   Cartel Informatique
Security Consultant/R&D                 http://www.cartel-info.fr
Phone: +33 1 44 06 97 94                Fax: +33 1 44 06 97 99
PGP KeyID:3D9A43E2  FingerPrint:C40A772533730E39330DC0985EE8FF5F3D9A43E2




More information about the linux-fai mailing list