Minor problem with task_chboot
Andreas Schockenhoff
asc at gmx.li
Sun Apr 9 10:46:53 CEST 2006
Hello,
On Sunday 09 April 2006 03:03, Holger Levsen wrote:
> On Wednesday 15 March 2006 09:47, Andreas Jobs wrote:
> > Problem:
> > task_chboot does not disable the correct pxe configuration.
> >
> > Description:
> > If you have more than one NIC, your hostname may not map to the
> > adress used during install. In my case (installing some Compaq
> > Blade Servers) the Installation uses eth0 but the "production"
> > interface is eth2. So, hostname resolves to the address bind to
> > eth2. During task_chboot fai does "fai_chboot -r $hostname" and
> > quits with a file not found message.
> >
> > Solution:
> > Use the address that was used during installation. My
> > quick-and-dirty patch currently is:
> >
> > --- subroutines-linux.orig 2006-01-12 17:49:49.000000000 +0100
> > +++ subroutines-linux 2006-03-10 09:41:23.000000000 +0100
> > @@ -185,7 +185,8 @@
> >
> > local frsh
> > local doexit=0
> > - local hostname=$(hostname)
> > + local hostname=$(cat $LOGDIR/boot.log | grep IPADDR | cut -d\'
> > -f2) + [ -z "$hostname" ] && hostname=$(hostname)
> > frsh="$FAI_REMOTESH -l $LOGUSER ${SERVER}"
> >
> >
> > Maybe there is a better (cleaner) solution.
>
> Thomas, can you please comment on this problem + solution ?
>
> > I'd like to file a bug in BTS. Should I file it to "fai" or
> > "fai-client"?
>
> fai-client as thats where the file with the bug comes from. But then,
> I dont think this matters, as both come from the same source package,
> which is what matters for the BTS.
I think if hostnames are not clear it should be better to use the MAC
address of the interface to set the PXE boot.
Like: /mybootdir/pxelinux.cfg/01-88-99-aa-bb-cc-dd
I think this can also use with dynamic IPs ( But I have no experience
with this because I do not like the task_chboot I have disabled
it :-) ).
bye Andreas
More information about the linux-fai
mailing list