[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: system name in %post of ks.cfg



Just add the paramater --hostname host to the network config lines in your
kickstart config:

network --device eth0 --bootproto dhcp --hostname yourhostname

(or amened if static)

Kev

-----Original Message-----
From: taroon-list-bounces redhat com [mailto:taroon-list-bounces redhat com]
On Behalf Of David Grierson
Sent: 23 September 2004 15:30
To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
Subject: Re: system name in %post of ks.cfg


Hi,

The hostname's figured out from the reverse lookup of the IP address 
assigned from DHCP. If it can't resolve the name it uses the default of 
"localhost.localdomain".

Alternatively you could do something `clever' with the %post section of 
your kickstart file to modify /etc/sysconfig/network.

Dg.

Ben Fitzgerald wrote:

> Hi,
> 
> Recently I installed a few linux systems with kickstart but when I 
> tried to get the hostname I got localhost.localdomain.
> 
> Is there a variable for this or need I get it from 
> /etc/sysconfig/network?
> 
> Thanks,
> 

-- 
David Grierson
Lumison
t: 0845 1199 900
d: +44 131 514 4053
-- 
Virus scanned by Lumison.


--
Taroon-list mailing list
Taroon-list redhat com http://www.redhat.com/mailman/listinfo/taroon-list


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]