Re: taroon and hostname in post

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

 



> If I set up kickstart to use DHCP and DHCP passes along host
> information, this apparently does not get set.
>
> So, hostname always returns "localhost" in my %post.  This worked fine
> in RHAS 2.1.  I noticed taroon uses a different dhcp client.
>
> Any suggestions?

Yes.

I execute the following script at the begin of the post section. The echo
commands can be removed.

#!/bin/bash
echo Hostname `hostname -s`
source /etc/sysconfig/network
hostname $HOSTNAME
echo Hostname `hostname -s`

To get the name of the computer you should always use 'hostname -s' as RH
sets the FQDN as hostname.

	cu

		Florian Festi




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux