[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: system name in %post of ks.cfg
- From: Rod Hauser <rod42 cyberspace org>
- To: "Discussion of Red Hat Enterprise Linux 3 (Taroon)" <taroon-list redhat com>
- Subject: Re: system name in %post of ks.cfg
- Date: Fri, 24 Sep 2004 23:43:42 -0500
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]