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

RE: system name in %post of ks.cfg




> -----Original Message-----
> From: Ben Fitzgerald [mailto:ben_m_f yahoo co uk]
> Sent: Thursday, September 23, 2004 2:03 PM
> To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
> Subject: Re: system name in %post of ks.cfg
> 
> On Thu, Sep 23, 2004 at 03:36:35PM +0100, Kevin Jackson wrote:
> > Just add the paramater --hostname host to the network config lines in
> your
> > kickstart config:
> >
> > network --device eth0 --bootproto dhcp --hostname yourhostname
> 
> I know about the network --hostname myhost
> 
> I wondered if there is a way to access the hostname as a param
> in the %post section. The hostname --hostname isn't in the %post
> section!
> 
> I am presently doing something 'clever' with /etc/sysconfig/network
> but wondered if there was a cleaner method.
> 
> Ben

Would the hostname command work for you?

Andrew



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