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

Re: system name in %post of ks.cfg



Ben,

You will have to pull it from /etc/sysconfig/network.
Here's the 1-liner that I use to pull the build hostname :

BUILDHN=`awk -F= '($1=="HOSTNAME") { print $2 }' /etc/sysconfig/network `

HTH
Rod

On Thursday 23 September 2004 09:24, 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,

-- 
Rod Hauser, CISSP, RHCE
St Louis, Missouri, USA, Sol 3, Milky Way



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