[gPXE] sanbootconf hostname setting

Michael Brown mbrown at fensystems.co.uk
Sun Mar 21 14:10:49 EDT 2010


On Sunday 21 March 2010 05:40:53 lsq726 wrote:
> hi,
>     Maybe this is not a perfect solution.
> There is no domain network it was very interesting and very convenient.
> You can add this functionality, plus a reminder to use the domain network
> users do not use this function. In the future there is a better scheme and
> then modify it.

I appreciate that it solves your specific problem.  However, as discussed 
here, I think it's not a good idea to apply it in its current form.

I'm prepared to add code that would store the hostname in

  CCS\Services\Tcpip\Parameters\DHCP Hostname

This is a non-standard registry value name, but seems like a relatively 
logical choice (given that "Hostname" and "NV Hostname" already exist).

You could then create a simple piece of code to copy the DHCP-assigned 
hostname into the other registry fields, adding a "star-" prefix as per your 
previous patch if so desired.  You may be able to do this with a script, 
though I'm not sure if it's possible to run a script before the Workstation 
service starts up.  If not, then a simple service (which could use 
sanbootconf's registry.c) would work.

Shao: what do you think of using the "DHCP Hostname" value?

Michael


More information about the gPXE mailing list