boot parameters not set correctly ( bug in get-boot-info ?)

Rudy Gevaert Rudy.Gevaert at UGent.be
Mon Jun 12 10:51:10 CEST 2006


Hi,

I think I found litte bug in the get-boot-info script.

At the end of the script you will see:

dmesg | grep -q "Sending DHCP requests"  && get_dhcp_info
dmesg | grep -q "Sending BOOTP requests" && get_bootp_info
if [ $boot -eq 0 ]; then
     get_fixed_info
fi

I think it means that FAI checks which method was used when it got its 
nfsroot.

In my case, when I have with ip=eth1:dhcp in my pxeconfig file for that 
host, it always executed the get_fixed_info subroutine.

This is because dmesg contains the following string.
   Sending DHCP and RARP requests ., OK

Grep can't find "Sending DHCP requests" ...

When it executes the get_fixed_info subroutine my boot.log looks like 
this.

topolino:/var/log/fai/current# cat boot.log
netdevices_all="eth0
eth1
eth2
eth3"
netdevices_up="eth1"
netdevices="eth1"
IPADDR=eth1
SERVER=dhcp
NETMASK=dhcp
GATEWAYS=dhcp
BROADCAST=eth1.255

And thus it breaks the rest of the installation on several ways:
- dns could be set up incorrectly (if resolv.conf-install-server is 
different than the resolv.conf for the install).
- can't copy to the log host: it copies to the server 'dhcp'.
- installation of software

As a fix I changed get-boot-info like this:
dmesg | grep -q "Sending DHCP "  && get_dhcp_info
#dmesg | grep -q "Sending BOOTP requests" && get_bootp_info

But this breaks BOOTP.

I'm booting my install with a 2.6.16.20 kernel.  For AMD64.  I'm trying 
to install sarge 64 bit.

Is the above normal, or did I configure something wrong?  (I created  my 
64 bit nfsroot in a chroot, and last week I had forgotten to copy the 
pxe kernel outside of the chroot to my tftpd server.  So it is possible 
I've forgotten something else too...)

Kind regards,

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert at UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
Groep Systemen                     Systems group
Universiteit Gent                  Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



More information about the linux-fai mailing list