Minor problem with task_chboot
Holger Levsen
debian at layer-acht.org
Sun Apr 9 03:03:51 CEST 2006
Hi,
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.
regards,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20060409/00c29ef9/attachment.bin
More information about the linux-fai
mailing list