Set Hostname in tftp pxe file? (was Re: fai trick: fix weird hostname)

2005-03-23 Thread Andreas Schockenhoff
Hi, I will set hostnames in the pxe boot files. On Monday 24 January 2005 12:59, Holger Schurig wrote: > I tried that first, but it did not work. The code line > in /usr/lib/fai/sbin/rcS_fai reads: > > - > if [ $HOSTNAME = '(none)' -a -n "$HOST" ]; then > - > > a

Re: fai trick: fix weird hostname

2005-01-24 Thread Holger Schurig
> hi holger, > > Did I get you right - you cannot modify die DHCP server's > configuration? ... > host hostnameXYZ { > hardware ethernet 00:02:B3:ff:ff:ff; > fixed-address 192.168.X,Y; > } No, you didn't get me right. I don't WANT to assign hostnames. Those IP addresses are from a dynam

Re: fai trick: fix weird hostname

2005-01-24 Thread Holger Schurig
> In fai 2.6.6 you can set the hostname by appending following parameter > to the kernel: > > HOST=demohost > > This will also set the hostname. For example. the fai CD contains > following boot entry for grub: I tried that first, but it did not work. The code line in /usr/lib/fai/sbin/rcS_fai re

Re: fai trick: fix weird hostname

2005-01-24 Thread Thomas Lange
> On Mon, 24 Jan 2005 11:38:06 +0100, Holger Schurig <[EMAIL PROTECTED]> > said: > There is no hostname in our local DNS for those DHCP addresses, so FAI > assigns the IP address (!) to HOSTNAME. But '172.16.1.241' is a weird > hostname. This is later used in /etc/hostname,

fai trick: fix weird hostname

2005-01-24 Thread Holger Schurig
Sometims I have to setup similar servers for customers. They don't end up in our local LAN, so they don't get local IP adresses. Instead, they get some short-lived dynamic IP address via DHCP. There is no hostname in our local DNS for those DHCP addresses, so FAI assigns the IP address (!) to H