Package: fai-server
Version: 2.10.1
Hi,
I was having some issues getting my machines to actually play nice in regards
to hostnames and I found some discussion on the mailing list from earlier this
year that referenced adding HOST= to the append line of the pxe config for a
specific host. This seems little tedious. I am still in a testing phase and am
playing with fai under vmware workstation, I am somewhat assuming that once I
have DNS functioning it will pick up hostnames nicely, in the meantime
/etc/hosts doesn't seem to have the impact I had hoped.
As others would seem to benefit from it as well I cracked open fai-chboot and
added a -H option (I hope I listed it correctly in the getopts line) -H appends
HOST=$host where $host is the hostname that the admin entered on the command
line here's the diff:
244c244,246
< $append="append $bootprot root=$rootfs $opt_k $flags\n";
---
> $append="append $bootprot root=$rootfs $opt_k $flags";
> $append .= " HOST=$host" if $opt_H;
> $append.="\n";
324c326
< getopts('gBc:d:ehnvlLiIp:f:Frk:Sto');
---
> getopts('gBc:d:ehnvlLHiIp:f:Frk:Sto');
It only took a few minutes to do, but, I saw mention it had come up a few times
on the mailing list and IRC.
Cheers,
Stewart